| 80 | } |
| 81 | |
| 82 | static void debug_log_to_json(struct json_stream *response, |
| 83 | const char *debug_log) |
| 84 | { |
| 85 | char **lines = tal_strsplit(tmpctx, debug_log, "\n", STR_NO_EMPTY); |
| 86 | |
| 87 | for (size_t i = 0; lines[i]; i++) |
| 88 | json_add_string(response, NULL, lines[i]); |
| 89 | } |
| 90 | |
| 91 | static struct command_result *make_error(struct command *cmd, |
| 92 | struct abort_pkg *abort_pkg, |
no test coverage detected