Called by param() directly if it's malformed. */
| 452 | |
| 453 | /* Called by param() directly if it's malformed. */ |
| 454 | struct command_result *command_fail(struct command *cmd, |
| 455 | enum jsonrpc_errcode code, const char *fmt, ...) |
| 456 | { |
| 457 | va_list ap; |
| 458 | struct command_result *res; |
| 459 | |
| 460 | va_start(ap, fmt); |
| 461 | res = command_done_err(cmd, code, tal_vfmt(cmd, fmt, ap), NULL); |
| 462 | va_end(ap); |
| 463 | return res; |
| 464 | } |
| 465 | |
| 466 | /* We invoke param for usage at registration time. */ |
| 467 | bool command_usage_only(const struct command *cmd) |
no test coverage detected