From ab47428c0e3e9fc68621a20f42bb6e7372fa3358 Mon Sep 17 00:00:00 2001 From: "Anthony J. Bentley" Date: Tue, 28 May 2013 02:23:48 -0600 Subject: [PATCH] Improve error message. --- src/asm/output.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/asm/output.c b/src/asm/output.c index c304b1ae..f3fd2f8c 100644 --- a/src/asm/output.c +++ b/src/asm/output.c @@ -5,6 +5,7 @@ * */ +#include #include #include #include @@ -928,7 +929,7 @@ out_BinaryFile(char *s) pPCSymbol->nValue += fsize; fclose(f); } else - fatalerror("File not found"); + fatalerror("Could not open file '%s': %s", s, strerror(errno)); } void @@ -973,5 +974,5 @@ out_BinaryFileSlice(char *s, SLONG start_pos, SLONG length) fclose(f); } else - fatalerror("File not found"); + fatalerror("Could not open file '%s': %s", s, strerror(errno)); }