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

Function paymod_err

plugins/libplugin-pay.c:203–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201 paymod_log_header(tmpctx, p), p->partid, txt);
202}
203static void
204paymod_err(struct payment *p, const char *fmt, ...)
205{
206 char *txt;
207 va_list ap;
208
209 va_start(ap, fmt);
210 txt = tal_vfmt(tmpctx, fmt, ap);
211 va_end(ap);
212
213 plugin_err(p->plugin, "cmd %s partid %"PRIu32": %s",
214 paymod_log_header(tmpctx, p), p->partid, txt);
215}
216
217/* Generic handler for RPC failures that should end up failing the payment. */
218static struct command_result *payment_rpc_failure(struct command *cmd,

Callers 2

payment_collect_resultFunction · 0.85

Calls 2

paymod_log_headerFunction · 0.85
plugin_errFunction · 0.70

Tested by

no test coverage detected