mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Make sure all error output is directed to stderr
This commit is contained in:
parent
873bd6973d
commit
545d473220
1 changed files with 4 additions and 4 deletions
|
|
@ -89,15 +89,15 @@ extern char ansi_format[];
|
||||||
putchar('\n'); \
|
putchar('\n'); \
|
||||||
if (option.color < 0) { \
|
if (option.color < 0) { \
|
||||||
if (error_normal) \
|
if (error_normal) \
|
||||||
fprintf (stdout, "Error: " format "\n", ## args); \
|
fprintf (stderr, "Error: " format "\n", ## args); \
|
||||||
else \
|
else \
|
||||||
fprintf (stdout, "\r[%s] Error: " format "\r\n", timestamp_current_time(), ## args); \
|
fprintf (stderr, "\r[%s] Error: " format "\r\n", timestamp_current_time(), ## args); \
|
||||||
} \
|
} \
|
||||||
else { \
|
else { \
|
||||||
if (error_normal) \
|
if (error_normal) \
|
||||||
{ ansi_printf("Error: " format, ## args); }\
|
{ ansi_error_printf("Error: " format, ## args); }\
|
||||||
else \
|
else \
|
||||||
{ ansi_printf("[%s] Error: " format, timestamp_current_time(), ## args); }\
|
{ ansi_error_printf("[%s] Error: " format, timestamp_current_time(), ## args); }\
|
||||||
} \
|
} \
|
||||||
print_tainted = false; \
|
print_tainted = false; \
|
||||||
} \
|
} \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue