summaryrefslogtreecommitdiffstats
path: root/man_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-05 12:34:17 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-05 12:34:17 +0000
commitb532f1e85747156cbe418d1a7751c2eea65c390b (patch)
tree9a02c6e56d65f04f32fae7c82d4b4191cb5c411f /man_validate.c
parent2b3a6826335208288b20ac657af3159eb354cd11 (diff)
downloadmandoc-b532f1e85747156cbe418d1a7751c2eea65c390b.tar.gz
Cleanup with respect to bad macro arguments.
* Fix .Sm with invalid arg: move arg out and toggle mode. * Promote "unknown standard" from WARNING to ERROR, it loses information. * Delete MANDOCERR_BADWIDTH, it would only indicate a mandoc(1) bug. * Do not report MANDOCERR_BL_LATETYPE when there is no type at all. * Mention macro names, arguments and fallbacks.
Diffstat (limited to 'man_validate.c')
-rw-r--r--man_validate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/man_validate.c b/man_validate.c
index fd9c4fc8..4303ad33 100644
--- a/man_validate.c
+++ b/man_validate.c
@@ -303,8 +303,8 @@ post_ft(CHKARGS)
}
if (0 == ok) {
- mandoc_vmsg(MANDOCERR_BADFONT, man->parse, n->line,
- n->pos, "%s", cp);
+ mandoc_vmsg(MANDOCERR_FT_BAD, man->parse,
+ n->line, n->pos, "ft %s", cp);
*cp = '\0';
}