Broken the result, and terminate the command */
| 312 | |
| 313 | /* Broken the result, and terminate the command */ |
| 314 | struct command_result *log_broken_and_complete(struct command *cmd, |
| 315 | const char *method, |
| 316 | const char *buf, |
| 317 | const jsmntok_t *result, |
| 318 | void *arg) |
| 319 | { |
| 320 | plugin_log(cmd->plugin, LOG_BROKEN, |
| 321 | "%s failed with %.*s", |
| 322 | method, |
| 323 | json_tok_full_len(result), |
| 324 | json_tok_full(buf, result)); |
| 325 | return ignore_and_complete(cmd, method, buf, result, arg); |
| 326 | } |
| 327 | |
| 328 | /* Call plugin_err */ |
| 329 | struct command_result *plugin_broken_cb(struct command *cmd, |
nothing calls this directly
no test coverage detected