Output some line numbers with warnings
This commit is contained in:
parent
ee530f9433
commit
1d89093059
2 changed files with 5 additions and 3 deletions
|
|
@ -993,7 +993,8 @@ void instance_t::check_directive(char * line)
|
||||||
{
|
{
|
||||||
expr_t expr(line);
|
expr_t expr(line);
|
||||||
if (! expr.calc(context.scope).to_boolean())
|
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)
|
void instance_t::comment_directive(char * line)
|
||||||
|
|
@ -1575,7 +1576,8 @@ xact_t * instance_t::parse_xact(char * line,
|
||||||
if (c == 'a') {
|
if (c == 'a') {
|
||||||
throw_(parse_error, _("Transaction assertion failed: %1") << p);
|
throw_(parse_error, _("Transaction assertion failed: %1") << p);
|
||||||
} else {
|
} else {
|
||||||
warning_(_("Transaction check failed: %1") << p);
|
warning_(_("%1Transaction check failed: %2")
|
||||||
|
<< file_context(pathname, linenum) << p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,5 +14,5 @@ test bal
|
||||||
0
|
0
|
||||||
__ERROR__
|
__ERROR__
|
||||||
Warning: Transaction check failed: (account =~ /Foo/)
|
Warning: Transaction check failed: (account =~ /Foo/)
|
||||||
Warning: Check failed: account("Assets:Checking").all(account =~ /Expense/)
|
Warning: "$sourcepath/test/baseline/feat-check.test", line 8: Check failed: account("Assets:Checking").all(account =~ /Expense/)
|
||||||
end test
|
end test
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue