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)); }