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

Function plugin_errv

plugins/libplugin.c:1977–1989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1975}
1976
1977void NORETURN plugin_errv(struct plugin *p, const char *fmt, va_list ap)
1978{
1979 va_list ap2;
1980
1981 /* In case it gets consumed, make a copy. */
1982 va_copy(ap2, ap);
1983
1984 plugin_logv(p, LOG_BROKEN, fmt, ap);
1985 vfprintf(stderr, fmt, ap2);
1986 fprintf(stderr, "\n");
1987 plugin_exit(p, 1);
1988 va_end(ap2);
1989}
1990
1991void NORETURN plugin_err(struct plugin *p, const char *fmt, ...)
1992{

Callers 1

plugin_errFunction · 0.85

Calls 2

plugin_logvFunction · 0.85
plugin_exitFunction · 0.85

Tested by

no test coverage detected