summaryrefslogtreecommitdiff
path: root/src/scope.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-13 18:39:26 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-13 18:39:26 -0400
commit2ea075dc4f48b5212a2b404e59ce16147871ba86 (patch)
tree52dc360b9afed97ac85774256bfa9f7dfe237590 /src/scope.cc
parent7708ed1a750fb3dd79fad1562f0fec8a06422339 (diff)
downloadfork-ledger-2ea075dc4f48b5212a2b404e59ce16147871ba86.tar.gz
fork-ledger-2ea075dc4f48b5212a2b404e59ce16147871ba86.tar.bz2
fork-ledger-2ea075dc4f48b5212a2b404e59ce16147871ba86.zip
Report error context in expressions more precisely
Diffstat (limited to 'src/scope.cc')
-rw-r--r--src/scope.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scope.cc b/src/scope.cc
index 52cf6a90..e18b5a0a 100644
--- a/src/scope.cc
+++ b/src/scope.cc
@@ -81,7 +81,7 @@ value_t& call_scope_t::resolve(const std::size_t index,
value_t& value(args[index]);
if (value.is_any()) {
context_scope_t scope(*this, context, required);
- value = as_expr(value)->calc(scope);
+ value = as_expr(value)->calc(scope, locus, depth);
if (required && ! value.is_type(context))
throw_(calc_error, _("Expected %1 for argument %2, but received %3")
<< value.label(context) << index