From 13cec525e528ff1b9187ac2b1f0965363c8bf94c Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 7 Jul 2014 21:36:20 +0000 Subject: Clean up ERROR messages related to document structure and macros: Hierarchical naming and mention macro names in messages. --- man.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'man.c') 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]); -- cgit