diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-29 11:04:17 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-29 11:04:17 +0000 |
commit | eceb0fa8869e9bc9a64e70df2a3ab07cf932de48 (patch) | |
tree | 25bb60b74009c1b20fcafcc1f1bedea54fe60340 | |
parent | 45fb847f6e6ad5ace6f8302551749b3e24158d7d (diff) | |
download | mandoc-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>.
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |