diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-07 21:36:20 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-07 21:36:20 +0000 |
commit | 13cec525e528ff1b9187ac2b1f0965363c8bf94c (patch) | |
tree | cdf5c917b4d9043fadc48e169fbd74d047dc9f3d /man.c | |
parent | 71a6145d9952e8d6805013e811b83ccbbd56b508 (diff) | |
download | mandoc-13cec525e528ff1b9187ac2b1f0965363c8bf94c.tar.gz |
Clean up ERROR messages related to document structure and macros:
Hierarchical naming and mention macro names in messages.
Diffstat (limited to 'man.c')
-rw-r--r-- | man.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -542,7 +542,7 @@ man_pmacro(struct man *man, int ln, char *buf, int offs) if (MAN_NSCOPED & man_macros[n->tok].flags) n = n->parent; - mandoc_vmsg(MANDOCERR_LINESCOPE, man->parse, n->line, + mandoc_vmsg(MANDOCERR_BLK_LINE, man->parse, n->line, n->pos, "%s breaks %s", man_macronames[tok], man_macronames[n->tok]); @@ -573,7 +573,7 @@ man_pmacro(struct man *man, int ln, char *buf, int offs) assert(MAN_BLOCK == n->type); assert(MAN_SCOPED & man_macros[n->tok].flags); - mandoc_vmsg(MANDOCERR_LINESCOPE, man->parse, n->line, + mandoc_vmsg(MANDOCERR_BLK_LINE, man->parse, n->line, n->pos, "%s breaks %s", man_macronames[tok], man_macronames[n->tok]); |