| 556 | } |
| 557 | |
| 558 | struct command_result *command_failed(struct command *cmd, |
| 559 | struct json_stream *result) |
| 560 | { |
| 561 | assert(cmd->json_stream == result); |
| 562 | /* Have to close error */ |
| 563 | json_object_end(result); |
| 564 | json_object_end(result); |
| 565 | |
| 566 | return command_raw_complete(cmd, result); |
| 567 | } |
| 568 | |
| 569 | struct command_result *command_fail(struct command *cmd, enum jsonrpc_errcode code, |
| 570 | const char *fmt, ...) |
no test coverage detected