aboutsummaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c7
1 files changed, 4 insertions, 3 deletions
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;