Use this instead of command_fail. */
| 353 | |
| 354 | /* Use this instead of command_fail. */ |
| 355 | static struct command_result * |
| 356 | mfc_fail(struct multifundchannel_command *mfc, enum jsonrpc_errcode code, |
| 357 | const char *fmt, ...) |
| 358 | { |
| 359 | struct mfc_fail_object *obj; |
| 360 | const char *msg; |
| 361 | va_list ap; |
| 362 | |
| 363 | va_start(ap, fmt); |
| 364 | msg = tal_vfmt(mfc, fmt, ap); |
| 365 | va_end(ap); |
| 366 | |
| 367 | obj = tal(mfc, struct mfc_fail_object); |
| 368 | obj->mfc = mfc; |
| 369 | obj->cmd = mfc->cmd; |
| 370 | obj->code = code; |
| 371 | obj->msg = msg; |
| 372 | |
| 373 | return mfc_cleanup(mfc, &mfc_fail_complete, obj); |
| 374 | } |
| 375 | struct mfc_err_raw_object { |
| 376 | struct multifundchannel_command *mfc; |
| 377 | const char *error; |
no outgoing calls
no test coverage detected