From 1dfafe070cb9b7f424555a4f8a539c16be27a86e Mon Sep 17 00:00:00 2001 From: David Given Date: Sun, 10 Feb 2019 14:19:18 +0100 Subject: [PATCH] Better error reporting. --- mach/proto/as/comm7.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mach/proto/as/comm7.c b/mach/proto/as/comm7.c index 02a7c1d58..c48de4d92 100644 --- a/mach/proto/as/comm7.c +++ b/mach/proto/as/comm7.c @@ -8,6 +8,7 @@ * miscellaneous */ +#include #include "comm0.h" #include "comm1.h" #include "y.tab.h" @@ -391,7 +392,7 @@ void emitf(int size, int negative) void ffreopen(char* s, FILE* f) { if (freopen(s, "r", f) == NULL) - fatal("can't reopen %s", s); + fatal("can't reopen %s: %s", s, strerror(errno)); } FILE* ffcreat(char* s)