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

Function splice_error

plugins/spender/splice.c:219–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219static struct command_result *splice_error(struct command *cmd,
220 const char *methodname,
221 const char *buf,
222 const jsmntok_t *error,
223 struct splice_cmd *splice_cmd)
224{
225 char *str = tal_fmt(NULL, "%s: %.*s",
226 methodname,
227 error->end - error->start,
228 buf + error->start);
229
230 return do_fail(cmd, splice_cmd, JSONRPC2_INVALID_PARAMS, take(str));
231}
232
233struct splice_index_pkg {
234 struct splice_cmd *splice_cmd;

Callers 1

splice_error_pkgFunction · 0.85

Calls 1

do_failFunction · 0.85

Tested by

no test coverage detected