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

Function command_err

plugins/bcli.c:253–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253static struct command_result *command_err(struct command *cmd,
254 struct bcli_result *res,
255 const char *errmsg)
256{
257 char *err = tal_fmt(cmd, "%s: %s (%.*s)",
258 res->args, errmsg, (int)res->output_len, res->output);
259 return command_done_err(cmd, BCLI_ERROR, err, NULL);
260}
261
262/* Don't use this in general: it's better to omit fields. */
263static void json_add_null(struct json_stream *stream, const char *fieldname)

Callers 5

getrawblockbyheightFunction · 0.85
getchaininfoFunction · 0.85
get_feerate_floorFunction · 0.85
get_feerateFunction · 0.85
getutxoutFunction · 0.85

Calls 1

command_done_errFunction · 0.85

Tested by

no test coverage detected