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

Function fail_internalerr

plugins/offers_inv_hook.c:80–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80static struct command_result *WARN_UNUSED_RESULT
81fail_internalerr(struct command *cmd,
82 const struct inv *inv,
83 const char *fmt, ...)
84{
85 va_list ap;
86 struct command_result *ret;
87
88 va_start(ap, fmt);
89 ret = fail_inv_level(cmd, inv, LOG_BROKEN, fmt, ap);
90 va_end(ap);
91
92 return ret;
93}
94
95#define inv_must_have(cmd_, i_, fld_) \
96 test_field(cmd_, i_, i_->inv->fld_ != NULL, #fld_, "missing")

Callers 2

listoffers_doneFunction · 0.70
listoffers_errorFunction · 0.70

Calls 1

fail_inv_levelFunction · 0.85

Tested by

no test coverage detected