plugins: make fatal errors neater.

Without this they get run together on stderr.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2025-10-23 14:23:03 +10:30
parent 8f6d3d87bb
commit e28fed7504

View File

@@ -1995,6 +1995,7 @@ void NORETURN plugin_errv(struct plugin *p, const char *fmt, va_list ap)
plugin_logv(p, LOG_BROKEN, fmt, ap);
vfprintf(stderr, fmt, ap2);
fprintf(stderr, "\n");
plugin_exit(p, 1);
va_end(ap2);
}