summaryrefslogtreecommitdiffstats
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
commit4d3ce3168697232f8d3fae53c2c45bd3aae0f64f (patch)
tree3831ef13f1b6a8bad6a28b23866ab3241323ec67 /mandoc.h
parent2d1ca5f3ed692ae735d706aa1bf8360da21eb54b (diff)
downloadmandoc-4d3ce3168697232f8d3fae53c2c45bd3aae0f64f.tar.gz
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mandoc.h b/mandoc.h
index 5627d4d8..5189e234 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -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 */