| 217 | } |
| 218 | |
| 219 | static 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 | |
| 233 | struct splice_index_pkg { |
| 234 | struct splice_cmd *splice_cmd; |
no test coverage detected