diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-22 18:54:24 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-22 18:54:24 -0400 |
commit | 7b76ea5cbcc7a9e5207f7754cfee558037870a96 (patch) | |
tree | 1d5cebcb65e79cde2ce1e5566171ffdc4e30afcf /src/expr.cc | |
parent | 9c164bd3dc3a3eb97d827a1383a845dcd49933c7 (diff) | |
download | fork-ledger-7b76ea5cbcc7a9e5207f7754cfee558037870a96.tar.gz fork-ledger-7b76ea5cbcc7a9e5207f7754cfee558037870a96.tar.bz2 fork-ledger-7b76ea5cbcc7a9e5207f7754cfee558037870a96.zip |
Errors while calculating value expressions now display meaningful error
context.
Diffstat (limited to 'src/expr.cc')
-rw-r--r-- | src/expr.cc | 6 |
1 files changed, 2 insertions, 4 deletions
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 |