From 7b76ea5cbcc7a9e5207f7754cfee558037870a96 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 22 Jan 2009 18:54:24 -0400 Subject: Errors while calculating value expressions now display meaningful error context. --- src/expr.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/expr.cc') diff --git a/src/expr.cc b/src/expr.cc index 946af265..7e63e401 100644 --- a/src/expr.cc +++ b/src/expr.cc @@ -162,10 +162,8 @@ value_t expr_t::eval(const string& _expr, scope_t& scope) void expr_t::print(std::ostream& out) const { - if (ptr) { - op_t::print_context_t context; - ptr->print(out, context); - } + if (ptr) + ptr->print(out); } void expr_t::dump(std::ostream& out) const -- cgit v1.2.3