mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Redirect error messages to stderr
This commit is contained in:
parent
9bc6e34e82
commit
c7b27b022f
2 changed files with 16 additions and 2 deletions
|
|
@ -35,11 +35,11 @@ void error_exit(void)
|
|||
if (error[0][0] != 0)
|
||||
{
|
||||
/* Print error */
|
||||
tio_printf("Error: %s", error[0]);
|
||||
tio_error_printf("Error: %s", error[0]);
|
||||
}
|
||||
else if ((error[1][0] != 0) && (option.no_autoconnect))
|
||||
{
|
||||
/* Print silent error */
|
||||
tio_printf("Error: %s", error[1]);
|
||||
tio_error_printf("Error: %s", error[1]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue