From 23abb4764a4be094608a14a6637f08e8f3067a76 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 21 Nov 2025 15:49:56 -0500 Subject: Add fatal: prefix to fatal error messages. --- src/io.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/io.c') diff --git a/src/io.c b/src/io.c index 9b664d4..4e20505 100644 --- a/src/io.c +++ b/src/io.c @@ -5,12 +5,12 @@ static int headers_read = 0; static int convert_eols = 0; static void die_arc(void) { - fprintf(stderr, "%s: this is an ARC file, not ALF\n", self); + fprintf(stderr, "%s: fatal: this is an ARC file, not ALF\n", self); exit(1); } static void die_not_alf(void) { - fprintf(stderr, "%s: not an ALF file\n", self); + fprintf(stderr, "%s: fatal: not an ALF file\n", self); exit(1); } @@ -143,7 +143,8 @@ void writeblock(void) { bytes = fwrite(buf, 1, len, out_file); if(bytes < 0) { - perror(self); /* TODO: out_filename */ + fprintf(stderr, "%s: fatal: ", self); + perror("write failed"); /* TODO: out_filename */ exit(1); } bytes_written += bytes; -- cgit v1.2.3