summaryrefslogtreecommitdiffstats
path: root/man.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-07 21:36:20 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-07 21:36:20 +0000
commit13cec525e528ff1b9187ac2b1f0965363c8bf94c (patch)
treecdf5c917b4d9043fadc48e169fbd74d047dc9f3d /man.c
parent71a6145d9952e8d6805013e811b83ccbbd56b508 (diff)
downloadmandoc-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/man.c b/man.c
index 95e7d38e..7d9e3fca 100644
--- a/man.c
+++ b/man.c
@@ -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]);