mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-12 16:14:23 +01:00
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:
parent
2848753083
commit
18efca478e
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ SYMBOL_EXPORT void FatalError(struct Game* game, bool exit, char* format, ...) {
|
||||||
vsnprintf(text, 1024, format, vl);
|
vsnprintf(text, 1024, format, vl);
|
||||||
SUPPRESS_END
|
SUPPRESS_END
|
||||||
va_end(vl);
|
va_end(vl);
|
||||||
PrintConsole(game, text);
|
fprintf(stderr, "%s", text);
|
||||||
|
|
||||||
// TODO: synchronize with loading thread
|
// TODO: synchronize with loading thread
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue