diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-13 18:39:26 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-13 18:39:26 -0400 |
commit | 2ea075dc4f48b5212a2b404e59ce16147871ba86 (patch) | |
tree | 52dc360b9afed97ac85774256bfa9f7dfe237590 /src/account.cc | |
parent | 7708ed1a750fb3dd79fad1562f0fec8a06422339 (diff) | |
download | fork-ledger-2ea075dc4f48b5212a2b404e59ce16147871ba86.tar.gz fork-ledger-2ea075dc4f48b5212a2b404e59ce16147871ba86.tar.bz2 fork-ledger-2ea075dc4f48b5212a2b404e59ce16147871ba86.zip |
Report error context in expressions more precisely
Diffstat (limited to 'src/account.cc')
-rw-r--r-- | src/account.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/account.cc b/src/account.cc index 809b6e46..ceeb1c12 100644 --- a/src/account.cc +++ b/src/account.cc @@ -295,7 +295,7 @@ namespace { foreach (post_t * p, account.posts) { bind_scope_t bound_scope(args, *p); - if (expr->calc(bound_scope).to_boolean()) + if (expr->calc(bound_scope, args.locus, args.depth).to_boolean()) return true; } return false; @@ -308,7 +308,7 @@ namespace { foreach (post_t * p, account.posts) { bind_scope_t bound_scope(args, *p); - if (! expr->calc(bound_scope).to_boolean()) + if (! expr->calc(bound_scope, args.locus, args.depth).to_boolean()) return false; } return true; |