From 545d473220892a6ca7a4ec9b3ed1141923858732 Mon Sep 17 00:00:00 2001 From: Martin Lund Date: Tue, 7 May 2024 14:21:43 +0200 Subject: [PATCH] Make sure all error output is directed to stderr --- src/print.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/print.h b/src/print.h index 4a41b32..038655c 100644 --- a/src/print.h +++ b/src/print.h @@ -89,15 +89,15 @@ extern char ansi_format[]; putchar('\n'); \ if (option.color < 0) { \ if (error_normal) \ - fprintf (stdout, "Error: " format "\n", ## args); \ + fprintf (stderr, "Error: " format "\n", ## args); \ 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 { \ if (error_normal) \ - { ansi_printf("Error: " format, ## args); }\ + { ansi_error_printf("Error: " format, ## args); }\ else \ - { ansi_printf("[%s] Error: " format, timestamp_current_time(), ## args); }\ + { ansi_error_printf("[%s] Error: " format, timestamp_current_time(), ## args); }\ } \ print_tainted = false; \ } \