Called by param() directly if it's malformed. */
| 660 | |
| 661 | /* Called by param() directly if it's malformed. */ |
| 662 | struct command_result *command_fail(struct command *cmd, |
| 663 | enum jsonrpc_errcode code, const char *fmt, ...) |
| 664 | { |
| 665 | va_list ap; |
| 666 | struct command_result *res; |
| 667 | |
| 668 | va_start(ap, fmt); |
| 669 | res = command_done_err(cmd, code, tal_vfmt(cmd, fmt, ap), NULL); |
| 670 | va_end(ap); |
| 671 | return res; |
| 672 | } |
| 673 | |
| 674 | /* We invoke param for usage at registration time. */ |
| 675 | bool command_usage_only(const struct command *cmd) |
no test coverage detected