summaryrefslogtreecommitdiffstats
path: root/man_macro.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_macro.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_macro.c')
-rw-r--r--man_macro.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/man_macro.c b/man_macro.c
index 5a027e65..4e4af5ce 100644
--- a/man_macro.c
+++ b/man_macro.c
@@ -110,7 +110,7 @@ man_unscope(struct man *man, const struct man_node *to)
MAN_BLOCK == n->type &&
0 == (MAN_VALID & n->flags) &&
MAN_EXPLICIT & man_macros[n->tok].flags)
- mandoc_msg(MANDOCERR_SCOPEEXIT,
+ mandoc_msg(MANDOCERR_BLK_NOEND,
man->parse, n->line, n->pos,
man_macronames[n->tok]);
/*
@@ -270,7 +270,8 @@ blk_close(MACRO_PROT_ARGS)
break;
if (NULL == nn) {
- man_pmsg(man, line, ppos, MANDOCERR_NOSCOPE);
+ mandoc_msg(MANDOCERR_BLK_NOTOPEN, man->parse,
+ line, ppos, man_macronames[tok]);
if ( ! rew_scope(MAN_BLOCK, man, MAN_PP))
return(0);
} else