aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-06-25 00:20:19 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-06-25 00:20:19 +0000
commit0b6903db7750adfcd88f388a0196037f91e474c6 (patch)
tree74a7bb636324f8fbc42a2c5baf7d30fcf31df1cf /mandoc.h
parentac2e8ee3f16b454077019e9f59ae2ff011411ae5 (diff)
downloadmandoc-0b6903db7750adfcd88f388a0196037f91e474c6.tar.gz
mandoc-0b6903db7750adfcd88f388a0196037f91e474c6.tar.zst
mandoc-0b6903db7750adfcd88f388a0196037f91e474c6.zip
Improve messages related to the roff(7) .so request.
In all these messages, show the filename argument that was passed to the .so request. In case of failure, show an additional message reporting the file and the line number where the failing request was found. The existing message reporting the reason for the failure - for example, "Permission denied" - is left in place, unchanged. Inspired by a question asked by Nick@ after he saw the confusing old messages that used to be emitted in this area.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/mandoc.h b/mandoc.h
index 3f4ea86a..2b9e8f56 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,4 +1,4 @@
-/* $Id: mandoc.h,v 1.122 2014/06/20 23:02:31 schwarze Exp $ */
+/* $Id: mandoc.h,v 1.123 2014/06/25 00:20:19 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -162,7 +162,8 @@ enum mandocerr {
MANDOCERR_SYNTARGVCOUNT, /* argument count wrong, violates syntax */
MANDOCERR_SYNTCHILD, /* child violates parent syntax */
MANDOCERR_SYNTARGCOUNT, /* argument count wrong, violates syntax */
- MANDOCERR_SOPATH, /* NOT IMPLEMENTED: .so with absolute path or ".." */
+ MANDOCERR_SO_PATH, /* NOT IMPLEMENTED: .so with absolute path or ".." */
+ MANDOCERR_SO_FAIL, /* .so request failed */
MANDOCERR_NODOCPROLOG, /* no document prologue */
MANDOCERR_MEM, /* static buffer exhausted */