| 279 | } |
| 280 | |
| 281 | static struct splice_script_error *new_error_msg(const tal_t *ctx, |
| 282 | enum splice_script_error_type type, |
| 283 | struct token *token, |
| 284 | const char *phase, |
| 285 | char *msg) |
| 286 | { |
| 287 | struct splice_script_error *error = new_error(ctx, type, token, phase); |
| 288 | |
| 289 | tal_append_fmt(&error->message, "%s", msg); |
| 290 | |
| 291 | return error; |
| 292 | } |
| 293 | |
| 294 | static char *context_snippet(const tal_t *ctx, |
| 295 | const char *script, |
no test coverage detected