From: schwarze Date: Wed, 29 Apr 2015 11:03:48 +0000 (+0000) Subject: Improve the error message in case somebody has configured an invalid PAGER. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7f6f4fdaad9aa1b0a41e2d837ca3819843154da2;p=openbsd Improve the error message in case somebody has configured an invalid PAGER. Suggested by Lorenzo Beretta . --- 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 * Copyright (c) 2010-2012, 2014, 2015 Ingo Schwarze @@ -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); }