summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-01-11 17:04:44 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-01-11 17:04:44 +0000
commit350e158d591d60167745a0943344c02f339a89a1 (patch)
treed21457782b2ae7e327147f2a4bfe68ef8e2bea7e /main.c
parent3be1a948007b770862e4e6b4bd927cc241a0d209 (diff)
downloadmandoc-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 400e7e65..1484eb90 100644
--- a/main.c
+++ b/main.c
@@ -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;