From 6983e6a38a6d06fd82667301940c976d56cb7ed1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 31 Jan 2009 01:21:24 -0400 Subject: Fixed error context output. --- src/entry.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/entry.cc') diff --git a/src/entry.cc b/src/entry.cc index 09e2647a..9749b1df 100644 --- a/src/entry.cc +++ b/src/entry.cc @@ -228,10 +228,10 @@ bool entry_base_t::finalize() if (! balance.is_null() && ! balance.is_zero()) { #if 0 - new entry_context(*this, "While balancing entry:"); + add_error_context(entry_context(*this)); #endif add_error_context("Unbalanced remainder is: "); - add_error_context(value_context(balance)); + add_error_context(value_context(balance.unround())); throw_(balance_error, "Entry does not balance"); } -- cgit v1.2.3