diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-04 16:12:08 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-04 16:12:08 +0000 |
commit | 75cc39c2a41a2eef6085721de92ebcdf1b8868f6 (patch) | |
tree | 275ea256856425a64c747d838de951c32f2890c8 /roff.c | |
parent | 604a31609737053378ee534fa32241da4a8500bf (diff) | |
download | mandoc-75cc39c2a41a2eef6085721de92ebcdf1b8868f6.tar.gz |
Clean up messages regarding excess arguments:
* Downgrade ".Bf -emphasis Em" from FATAL to WARNING.
* Mention the macros, the arguments, and the fallbacks.
* Hierarchical naming.
Diffstat (limited to 'roff.c')
-rw-r--r-- | roff.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -856,7 +856,8 @@ roff_cblock(ROFF_ARGS) } if ((*bufp)[pos]) - mandoc_msg(MANDOCERR_ARGSLOST, r->parse, ln, pos, NULL); + mandoc_vmsg(MANDOCERR_ARG_SKIP, r->parse, ln, pos, + ".. %s", *bufp + pos); roffnode_pop(r); roffnode_cleanscope(r); @@ -960,7 +961,8 @@ roff_block(ROFF_ARGS) r->last->end = mandoc_strndup(name, namesz); if ('\0' != *cp) - mandoc_msg(MANDOCERR_ARGSLOST, r->parse, ln, pos, NULL); + mandoc_vmsg(MANDOCERR_ARG_EXCESS, r->parse, + ln, pos, ".%s ... %s", roffs[tok].name, cp); return(ROFF_IGN); } |