diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-04 01:50:06 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-04 01:50:06 +0000 |
commit | 604a31609737053378ee534fa32241da4a8500bf (patch) | |
tree | bb0d4899153946ca0e4cda89b64b10aa5122b23c /read.c | |
parent | d34c8b8f2efbf5e05c8603d4ea4f46f0b338661a (diff) | |
download | mandoc-604a31609737053378ee534fa32241da4a8500bf.tar.gz |
Clean up messages related to missing arguments.
* Do not warn about empty -column cells, they seem valid to me.
* Downgrade empty item and missing -std from ERROR to WARNING.
* Hierarchical naming.
* Descriptive, not imperative style.
* Mention macro names, argument names, and fallbacks.
* Garbage collect some unreachable code in post_it().
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -132,11 +132,13 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "conditional request controls empty scope", "skipping empty macro", "argument count wrong", - "missing display type", - "list type must come first", - "tag lists require a width argument", - "missing head in list item", + "missing display type, using -ragged", + "list type is not the first argument", + "missing -width in -tag list, using 8n", + "empty head in list item", + "empty list item", "missing font type", + "missing -std argument, adding it", /* related to bad macro arguments */ "skipping argument", @@ -190,10 +192,8 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "missing end of block", "scope open on exit", "uname(3) system call failed", - "macro requires body argument(s)", - "macro requires argument(s)", "request requires a numeric argument", - "missing list type", + "missing list type, using -item", "line argument(s) will be lost", "generic fatal error", |