aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--listamsb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/listamsb.c b/listamsb.c
index 8e7d7ea..36e1ac2 100644
--- a/listamsb.c
+++ b/listamsb.c
@@ -186,7 +186,8 @@ unsigned char read_byte(void) {
c = fgetc(infile);
- if(c < 0) die("unexpected EOF, file truncated?");
+ if(c < 0) die("unexpected EOF in %s (byte %d), file truncated?",
+ (header_read ? "program" : "header"), bytes_read);
bytes_read++;
return (unsigned char)c;