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