diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-04-29 11:03:49 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-04-29 11:03:49 +0000 |
commit | b1becf51bfc6361de70f503a24b5d15a2162f203 (patch) | |
tree | b53a84f3c593dd2e1bbe3521b8531597772f551b | |
parent | bf26c62fb48bc314c1469e85352d390ce2d41ae9 (diff) |
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-- | usr.bin/mandoc/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/main.c b/usr.bin/mandoc/main.c index 859e844847c..f8e4f1a9c9b 100644 --- a/usr.bin/mandoc/main.c +++ b/usr.bin/mandoc/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.142 2015/04/20 09:54:34 schwarze Exp $ */ +/* $OpenBSD: main.c,v 1.143 2015/04/29 11:03:48 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2012, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org> @@ -1002,7 +1002,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); } |