ref: 0886e4badd8d2f3c04dbd3166f80d96cb4fe008e
parent: 8661f939ba045c83d39f3b0da40cefde6d2a875c
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Wed Nov 29 21:06:16 EST 2023
Host_Error: include the error in fatal() call if reentered
--- a/host.c
+++ b/host.c
@@ -90,15 +90,13 @@
char s[1024];
static bool inerror = false;
- if(inerror)
- fatal("Host_Error: recursively entered");
- inerror = true;
-
va_start(arg, fmt);
vsnprint(s, sizeof s, fmt, arg);
va_end(arg);
- fprintf(stderr, "Host_Error: %s\n", s);
+ if(inerror)
+ fatal("Host_Error: recursively entered: %s", fmt);
+ inerror = true;
SCR_EndLoadingPlaque(); // reenable screen updates