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 | 973dc20bd12937b90f98a0ba7c750c4f7b189719 (patch) | |
tree | dd28612d22ae7bfefa2d61fde515accbb2256ecf | |
parent | 7a1980e1d955e7c1d9a474ed84c1c70e95d18bca (diff) | |
download | mandoc-973dc20bd12937b90f98a0ba7c750c4f7b189719.tar.gz mandoc-973dc20bd12937b90f98a0ba7c750c4f7b189719.tar.zst mandoc-973dc20bd12937b90f98a0ba7c750c4f7b189719.zip |
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 | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.237 2015/04/20 09:54:48 schwarze Exp $ */ +/* $Id: main.c,v 1.238 2015/04/29 11:04:17 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2012, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org> @@ -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); } |