Called by param() directly if it's malformed. */
| 650 | |
| 651 | /* Called by param() directly if it's malformed. */ |
| 652 | struct command_result *command_fail(struct command *cmd, |
| 653 | enum jsonrpc_errcode code, const char *fmt, ...) |
| 654 | { |
| 655 | va_list ap; |
| 656 | struct command_result *res; |
| 657 | |
| 658 | va_start(ap, fmt); |
| 659 | res = command_done_err(cmd, code, tal_vfmt(cmd, fmt, ap), NULL); |
| 660 | va_end(ap); |
| 661 | return res; |
| 662 | } |
| 663 | |
| 664 | /* We invoke param for usage at registration time. */ |
| 665 | bool command_usage_only(const struct command *cmd) |
no test coverage detected