| 109 | } |
| 110 | |
| 111 | static struct command_result *pay_error(struct command *cmd, |
| 112 | const char *method, |
| 113 | const char *buf, |
| 114 | const jsmntok_t *error, |
| 115 | struct inv *inv) |
| 116 | { |
| 117 | const jsmntok_t *msgtok = json_get_member(buf, error, "message"); |
| 118 | |
| 119 | return fail_inv(cmd, inv, "pay attempt failed: %.*s", |
| 120 | json_tok_full_len(msgtok), |
| 121 | json_tok_full(buf, msgtok)); |
| 122 | } |
| 123 | |
| 124 | static struct command_result *listinvreqs_done(struct command *cmd, |
| 125 | const char *method, |
nothing calls this directly
no test coverage detected