summaryrefslogtreecommitdiff
path: root/src/journal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/journal.cc')
-rw-r--r--src/journal.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal.cc b/src/journal.cc
index a8ad2807..9bb453ef 100644
--- a/src/journal.cc
+++ b/src/journal.cc
@@ -199,7 +199,7 @@ bool entry_base_t::finalize()
continue;
if (! empty_allowed)
- throw_(exception, "Only one transaction with null amount allowed per entry");
+ throw_(std::logic_error, "Only one transaction with null amount allowed per entry");
empty_allowed = false;
// If one transaction gives no value at all, its value will become
@@ -256,7 +256,7 @@ bool entry_base_t::finalize()
if (balance) {
#if 1
- throw_(balance_exception, "Entry does not balance");
+ throw_(balance_error, "Entry does not balance");
#else
error * err =
new balance_error("Entry does not balance",