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