From 1d89093059b6a017fe882d3e3415503938b126ee Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 27 Feb 2012 04:09:08 -0600 Subject: Output some line numbers with warnings --- src/textual.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/textual.cc') diff --git a/src/textual.cc b/src/textual.cc index 8a1968fc..90dab52d 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -993,7 +993,8 @@ void instance_t::check_directive(char * line) { expr_t expr(line); if (! expr.calc(context.scope).to_boolean()) - warning_(_("Check failed: %1") << line); + warning_(_("%1Check failed: %2") + << file_context(pathname, linenum) << line); } void instance_t::comment_directive(char * line) @@ -1575,7 +1576,8 @@ xact_t * instance_t::parse_xact(char * line, if (c == 'a') { throw_(parse_error, _("Transaction assertion failed: %1") << p); } else { - warning_(_("Transaction check failed: %1") << p); + warning_(_("%1Transaction check failed: %2") + << file_context(pathname, linenum) << p); } } } -- cgit v1.2.3