| 144 | } |
| 145 | |
| 146 | static struct command_result *pay_error(struct command *cmd, |
| 147 | const char *buf, |
| 148 | const jsmntok_t *error, |
| 149 | struct inv *inv) |
| 150 | { |
| 151 | const jsmntok_t *msgtok = json_get_member(buf, error, "message"); |
| 152 | |
| 153 | return fail_inv(cmd, inv, "pay attempt failed: %.*s", |
| 154 | json_tok_full_len(msgtok), |
| 155 | json_tok_full(buf, msgtok)); |
| 156 | } |
| 157 | |
| 158 | static struct command_result *listoffers_done(struct command *cmd, |
| 159 | const char *buf, |
nothing calls this directly
no test coverage detected