Redirect error messages to stderr

This commit is contained in:
Martin Lund 2022-05-24 13:35:27 +02:00
parent 9bc6e34e82
commit c7b27b022f
2 changed files with 16 additions and 2 deletions

View file

@ -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]);
}
}