diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-07-04 01:50:04 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-07-04 01:50:04 +0000 |
commit | f5b56d633ad0f16a7046ad50606fd117803b93fd (patch) | |
tree | 3d700b1ba0f167a5d0ff4308c2f95b5e59f57c1e /usr.bin/mandoc/read.c | |
parent | cf1b4eae69f8c1fedf30843440f6f65e58f4c5c3 (diff) |
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 'usr.bin/mandoc/read.c')
-rw-r--r-- | usr.bin/mandoc/read.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/mandoc/read.c b/usr.bin/mandoc/read.c index 9381ae0407f..88f025b4eca 100644 --- a/usr.bin/mandoc/read.c +++ b/usr.bin/mandoc/read.c @@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.37 2014/07/03 23:23:45 schwarze Exp $ */ +/* $Id: read.c,v 1.38 2014/07/04 01:50:03 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org> @@ -124,11 +124,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", @@ -182,10 +184,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", |