From 18efca478e8b7a49ba8f1492fc74cea0ca879322 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Sat, 20 Jan 2018 02:23:17 +0100 Subject: [PATCH] FatalError: print the error message to stderr Printing to console outputs it to stdout, but only if debug mode is enabled. stderr seems better suited too. --- src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.c b/src/utils.c index 560938f..1b34406 100644 --- a/src/utils.c +++ b/src/utils.c @@ -197,7 +197,7 @@ SYMBOL_EXPORT void FatalError(struct Game* game, bool exit, char* format, ...) { vsnprintf(text, 1024, format, vl); SUPPRESS_END va_end(vl); - PrintConsole(game, text); + fprintf(stderr, "%s", text); // TODO: synchronize with loading thread