| 468 | } |
| 469 | |
| 470 | struct command_result *command_failed(struct command *cmd, |
| 471 | struct json_stream *result) |
| 472 | { |
| 473 | assert(cmd->json_stream == result); |
| 474 | /* Have to close error */ |
| 475 | json_object_end(result); |
| 476 | json_object_end(result); |
| 477 | |
| 478 | return command_raw_complete(cmd, result); |
| 479 | } |
| 480 | |
| 481 | struct command_result *command_fail(struct command *cmd, enum jsonrpc_errcode code, |
| 482 | const char *fmt, ...) |
no test coverage detected