summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-02-06 16:06:25 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-02-06 16:06:25 +0000
commit1e390373a2e27a0047fae8db8c21d17e044c8376 (patch)
tree307219573169623faa5b504c9632626fb6659c65 /mdoc_validate.c
parentdaf2e16fdc43b128212a4ed878eda6db14c08074 (diff)
downloadmandoc-1e390373a2e27a0047fae8db8c21d17e044c8376.tar.gz
replace the last legacy generic message type, "argument count wrong",
by more specific messages, improving diagnostics for .cc .tr .Bl -column
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 63694626..76b6e8a5 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1221,9 +1221,9 @@ post_it(POST_ARGS)
i++;
if (i < cols || i > cols + 1)
- mandoc_vmsg(MANDOCERR_ARGCOUNT,
+ mandoc_vmsg(MANDOCERR_BL_COL,
mdoc->parse, nit->line, nit->pos,
- "columns == %d (have %d)", cols, i);
+ "%d columns, %d cells", cols, i);
break;
default:
abort();