diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-01-11 17:04:44 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-01-11 17:04:44 +0000 |
commit | 350e158d591d60167745a0943344c02f339a89a1 (patch) | |
tree | d21457782b2ae7e327147f2a4bfe68ef8e2bea7e /main.c | |
parent | 3be1a948007b770862e4e6b4bd927cc241a0d209 (diff) | |
download | mandoc-350e158d591d60167745a0943344c02f339a89a1.tar.gz |
Improve error reporting when a file given on the command line
cannot be opened:
* Mention the filename.
* Report the errno for the file itself, not the one with .gz appended.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -561,7 +561,7 @@ main(int argc, char *argv[]) } } else mandoc_msg(MANDOCERR_FILE, 0, 0, - "%s", strerror(errno)); + "%s: %s", thisarg, strerror(errno)); if (curp.wstop && mandoc_msg_getrc() != MANDOCLEVEL_OK) break; |