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.
This commit is contained in:
Sebastian Krzyszkowiak 2018-01-20 02:23:17 +01:00
parent 2848753083
commit 18efca478e

View file

@ -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