| 1349 | } |
| 1350 | |
| 1351 | static struct command_result *currency_error(struct command *cmd, |
| 1352 | const char *method, |
| 1353 | const char *buf, |
| 1354 | const jsmntok_t *error, |
| 1355 | struct currency_time *ctime) |
| 1356 | { |
| 1357 | struct bkpr *bkpr = bkpr_of(cmd->plugin); |
| 1358 | |
| 1359 | if (!bkpr->warned_currency_fail) { |
| 1360 | plugin_log(cmd->plugin, LOG_BROKEN, |
| 1361 | "error calling %s: %.*s", |
| 1362 | method, json_tok_full_len(error), |
| 1363 | json_tok_full(buf, error)); |
| 1364 | bkpr->warned_currency_fail = true; |
| 1365 | } |
| 1366 | |
| 1367 | return rinfo_one_done(cmd, ctime->rinfo); |
| 1368 | } |
| 1369 | |
| 1370 | static void lookup_currency(struct command *cmd, |
| 1371 | struct bkpr *bkpr, |
nothing calls this directly
no test coverage detected