diff options
Diffstat (limited to 'interpret.h')
-rw-r--r-- | interpret.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/interpret.h b/interpret.h index ff9ba768..c26a9d46 100644 --- a/interpret.h +++ b/interpret.h @@ -1192,9 +1192,12 @@ match_re: } if (! inrec(curfile, & errcode)) { - if (errcode > 0 && (do_traditional || ! pc->has_endfile)) - fatal(_("error reading input file `%s': %s"), + if (errcode > 0) { + update_ERRNO_int(errcode); + if (do_traditional || ! pc->has_endfile) + fatal(_("error reading input file `%s': %s"), curfile->public.name, strerror(errcode)); + } JUMPTO(ni); } /* else |