| 755 | } |
| 756 | |
| 757 | struct json_stream *json_stream_fail(struct command *cmd, |
| 758 | enum jsonrpc_errcode code, |
| 759 | const char *errmsg) |
| 760 | { |
| 761 | struct json_stream *r = json_stream_fail_nodata(cmd, code, errmsg); |
| 762 | |
| 763 | json_object_start(r, "data"); |
| 764 | return r; |
| 765 | } |
| 766 | |
| 767 | static struct command_result *command_exec(struct json_connection *jcon, |
| 768 | struct command *cmd, |
no test coverage detected