diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-08-06 22:25:43 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-08-06 22:25:43 +0300 |
commit | 09dca22666681470a207083f339083a1a4a8c973 (patch) | |
tree | daabf56f62befcb127d6791047cec47baa154f49 /interpret.h | |
parent | 4425e6c5b88ecc03371b68926ebf89ebe03839ba (diff) | |
parent | 6b9d87b595278e606096018ea16615033c5571fe (diff) | |
download | egawk-09dca22666681470a207083f339083a1a4a8c973.tar.gz egawk-09dca22666681470a207083f339083a1a4a8c973.tar.bz2 egawk-09dca22666681470a207083f339083a1a4a8c973.zip |
Merge branch 'master' into comment
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 6b56efa7..70cb214b 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 |