summaryrefslogtreecommitdiff
path: root/journal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'journal.cc')
-rw-r--r--journal.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/journal.cc b/journal.cc
index 4b3da90c..e3937b8b 100644
--- a/journal.cc
+++ b/journal.cc
@@ -263,6 +263,9 @@ bool entry_base_t::finalize()
error * err =
new balance_error("Entry does not balance",
new entry_context(*this, "While balancing entry:"));
+ DEBUG_PRINT("ledger.journal.unbalanced_remainder",
+ "balance = " << balance);
+ balance.round();
err->context.push_front
(new value_context(balance, "Unbalanced remainder is:"));
throw err;