| 125 | } |
| 126 | |
| 127 | static struct command_result *injectonionmessage_error(struct command *cmd, |
| 128 | const char *method, |
| 129 | const char *buf, |
| 130 | const jsmntok_t *err, |
| 131 | void *unused) |
| 132 | { |
| 133 | /* This can happen if the peer goes offline or wasn't directly |
| 134 | * connected: "Unknown first peer" */ |
| 135 | plugin_log(cmd->plugin, LOG_DBG, |
| 136 | "injectonionmessage gave JSON error: %.*s", |
| 137 | json_tok_full_len(err), |
| 138 | json_tok_full(buf, err)); |
| 139 | return command_hook_success(cmd); |
| 140 | } |
| 141 | |
| 142 | struct command_result * |
| 143 | inject_onionmessage_(struct command *cmd, |
nothing calls this directly
no test coverage detected