summaryrefslogtreecommitdiff
path: root/reconcile.cc
diff options
context:
space:
mode:
Diffstat (limited to 'reconcile.cc')
-rw-r--r--reconcile.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/reconcile.cc b/reconcile.cc
index e2f11198..b56ebcf2 100644
--- a/reconcile.cc
+++ b/reconcile.cc
@@ -60,7 +60,7 @@ void reconcile_transactions::flush()
}
if (cleared_balance.type >= value_t::BALANCE)
- throw error("Cannot reconcile accounts with multiple commodities");
+ throw new error("Cannot reconcile accounts with multiple commodities");
cleared_balance.cast(value_t::AMOUNT);
balance.cast(value_t::AMOUNT);
@@ -70,8 +70,8 @@ void reconcile_transactions::flush()
balance -= cleared_balance;
if (balance.type >= value_t::BALANCE)
- throw error(std::string("Reconcile balance is not of the same commodity ('") +
- b_comm.symbol() + "' != '" + cb_comm.symbol() + "')");
+ throw new error(std::string("Reconcile balance is not of the same commodity ('") +
+ b_comm.symbol() + "' != '" + cb_comm.symbol() + "')");
// If the amount to reconcile is the same as the pending balance,
// then assume an exact match and return the results right away.
@@ -81,7 +81,7 @@ void reconcile_transactions::flush()
search_for_balance(to_reconcile, &first, first)) {
push_to_handler(first);
} else {
- throw error("Could not reconcile account!");
+ throw new error("Could not reconcile account!");
}
}