MCPcopy Create free account
hub / github.com/ElementsProject/lightning / new_error_msg

Function new_error_msg

common/splice_script.c:281–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281static 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
294static char *context_snippet(const tal_t *ctx,
295 const char *script,

Callers 1

calculate_amountsFunction · 0.85

Calls 2

new_errorFunction · 0.85
tal_append_fmtFunction · 0.85

Tested by

no test coverage detected