diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-02 20:19:11 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-02 20:19:11 +0000 |
commit | 02c50c123f386b824e755e7f6334792530c88411 (patch) | |
tree | e1563af95c08fd153266f539d7fa5524f1c6ae36 /mdoc_validate.c | |
parent | fdc95e0f088e210664eb7459003c922102fc748e (diff) | |
download | mandoc-02c50c123f386b824e755e7f6334792530c88411.tar.gz |
Improve and test the messages about empty macros,
in particular reporting the macro names involved.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r-- | mdoc_validate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index ecd1ee09..945d684b 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1729,7 +1729,9 @@ post_st(POST_ARGS) const char *p; if (NULL == (ch = mdoc->last->child)) { - mdoc_nmsg(mdoc, mdoc->last, MANDOCERR_MACROEMPTY); + mandoc_msg(MANDOCERR_MACRO_EMPTY, mdoc->parse, + mdoc->last->line, mdoc->last->pos, + mdoc_macronames[mdoc->last->tok]); mdoc_node_delete(mdoc, mdoc->last); return(1); } |