aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/eqn.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-04 16:12:08 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-04 16:12:08 +0000
commit50b8b4d12d3828eef15079704fdc9586de75c7ef (patch)
tree3e223cee342e42199f2de9b6bcbb50544b658366 /eqn.c
parent977b1ebb8e08cb6933cea2f78ab50687dcd69da7 (diff)
downloadmandoc-50b8b4d12d3828eef15079704fdc9586de75c7ef.tar.gz
mandoc-50b8b4d12d3828eef15079704fdc9586de75c7ef.tar.zst
mandoc-50b8b4d12d3828eef15079704fdc9586de75c7ef.zip
Clean up messages regarding excess arguments:
* Downgrade ".Bf -emphasis Em" from FATAL to WARNING. * Mention the macros, the arguments, and the fallbacks. * Hierarchical naming.
Diffstat (limited to 'eqn.c')
-rw-r--r--eqn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/eqn.c b/eqn.c
index 57cbfca1..40199db8 100644
--- a/eqn.c
+++ b/eqn.c
@@ -1,4 +1,4 @@
-/* $Id: eqn.c,v 1.42 2014/04/23 21:06:41 schwarze Exp $ */
+/* $Id: eqn.c,v 1.43 2014/07/04 16:12:08 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -300,7 +300,8 @@ eqn_read(struct eqn_node **epp, int ln,
p++;
if ('\0' == *p)
return(er);
- mandoc_msg(MANDOCERR_ARGSLOST, ep->parse, ln, pos, NULL);
+ mandoc_vmsg(MANDOCERR_ARG_SKIP, ep->parse,
+ ln, pos, "EN %s", p);
return(er);
}