MCPcopy Create free account
hub / github.com/ElementsProject/lightning / plugin_broken_cb

Function plugin_broken_cb

plugins/libplugin.c:329–340  ·  view source on GitHub ↗

Call plugin_err */

Source from the content-addressed store, hash-verified

327
328/* Call plugin_err */
329struct command_result *plugin_broken_cb(struct command *cmd,
330 const char *method,
331 const char *buf,
332 const jsmntok_t *result,
333 void *arg)
334{
335 plugin_err(cmd->plugin,
336 "%s failed with %.*s",
337 method,
338 json_tok_full_len(result),
339 json_tok_full(buf, result));
340}
341
342/* Prefix is usually a cmd->id */
343static const char *json_id(const tal_t *ctx, struct plugin *plugin,

Callers

nothing calls this directly

Calls 3

plugin_errFunction · 0.70
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50

Tested by

no test coverage detected