summaryrefslogtreecommitdiffstats
path: root/read.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-02-23 13:31:03 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-02-23 13:31:03 +0000
commitd9ef974d05cb710d89c63e8ee474a0eb00e2d56b (patch)
tree8fe4c115973611db8d2d44351bf3f89847e38b30 /read.c
parent4c2af21a8a623f5d22f660bdcfff1e1c23b9bcd2 (diff)
downloadmandoc-d9ef974d05cb710d89c63e8ee474a0eb00e2d56b.tar.gz
improve NAME section diagnostics;
confusing messages reported by Jan Stary <hans at stare dot cz>
Diffstat (limited to 'read.c')
-rw-r--r--read.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/read.c b/read.c
index 8a126d51..75c3b55a 100644
--- a/read.c
+++ b/read.c
@@ -109,7 +109,10 @@ static const char * const mandocerrs[MANDOCERR_MAX] = {
"no document body",
"content before first section header",
"first section is not \"NAME\"",
- "bad NAME section contents",
+ "NAME section without name",
+ "NAME section without description",
+ "description not at the end of NAME",
+ "bad NAME section content",
"missing description line, using \"\"",
"sections out of conventional order",
"duplicate section title",