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

Function command_fail

common/test/run-param.c:43–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41static struct command_result cmd_failed;
42
43struct command_result *command_fail(struct command *cmd,
44 enum jsonrpc_errcode code, const char *fmt, ...)
45{
46 failed = true;
47 va_list ap;
48 va_start(ap, fmt);
49 fail_msg = tal_vfmt(cmd, fmt, ap);
50 va_end(ap);
51 return &cmd_failed;
52}
53
54bool command_deprecated_in_ok(struct command *cmd,
55 const char *param,

Callers 15

command_fail_badparamFunction · 0.50
post_checkFunction · 0.50
parse_by_positionFunction · 0.50
parse_by_nameFunction · 0.50
param_arrFunction · 0.50
param_subcommandFunction · 0.50
param_hops_arrayFunction · 0.50
param_secrets_arrayFunction · 0.50
param_bitcoin_addressFunction · 0.50
param_outpoint_arrFunction · 0.50
param_extra_tlvsFunction · 0.50
param_routehintFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected