summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-04-29 11:04:17 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-04-29 11:04:17 +0000
commiteceb0fa8869e9bc9a64e70df2a3ab07cf932de48 (patch)
tree25bb60b74009c1b20fcafcc1f1bedea54fe60340 /main.c
parent45fb847f6e6ad5ace6f8302551749b3e24158d7d (diff)
downloadmandoc-eceb0fa8869e9bc9a64e70df2a3ab07cf932de48.tar.gz
Improve the error message in case somebody has configured an invalid PAGER.
Suggested by Lorenzo Beretta <lory dot fulgi at infinito dot it>.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 36bd3d97..61aba7ae 100644
--- a/main.c
+++ b/main.c
@@ -1027,7 +1027,7 @@ spawn_pager(void)
/* Hand over to the pager. */
execvp(argv[0], argv);
- fprintf(stderr, "%s: exec: %s\n",
- progname, strerror(errno));
+ fprintf(stderr, "%s: exec %s: %s\n",
+ progname, argv[0], strerror(errno));
exit((int)MANDOCLEVEL_SYSERR);
}