summaryrefslogtreecommitdiffstats
path: root/man_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-04 16:12:08 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-04 16:12:08 +0000
commit75cc39c2a41a2eef6085721de92ebcdf1b8868f6 (patch)
tree275ea256856425a64c747d838de951c32f2890c8 /man_validate.c
parent604a31609737053378ee534fa32241da4a8500bf (diff)
downloadmandoc-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 'man_validate.c')
-rw-r--r--man_validate.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/man_validate.c b/man_validate.c
index 72d8d023..fd9c4fc8 100644
--- a/man_validate.c
+++ b/man_validate.c
@@ -363,7 +363,11 @@ check_par(CHKARGS)
break;
case MAN_HEAD:
if (n->nchild)
- man_nmsg(man, n, MANDOCERR_ARGSLOST);
+ mandoc_vmsg(MANDOCERR_ARG_SKIP,
+ man->parse, n->line, n->pos,
+ "%s %s%s", man_macronames[n->tok],
+ n->child->string,
+ n->nchild > 1 ? " ..." : "");
break;
default:
break;