From 2ea075dc4f48b5212a2b404e59ce16147871ba86 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 13 Jun 2010 18:39:26 -0400 Subject: Report error context in expressions more precisely --- src/scope.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scope.cc') 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 -- cgit v1.2.3