summaryrefslogtreecommitdiff
path: root/derive.cc
diff options
context:
space:
mode:
Diffstat (limited to 'derive.cc')
-rw-r--r--derive.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/derive.cc b/derive.cc
index 20083796..837353cc 100644
--- a/derive.cc
+++ b/derive.cc
@@ -17,10 +17,10 @@ entry_t * derive_new_entry(journal_t& journal,
entry_t * matching = NULL;
if (! parse_date((*i).c_str(), &added->_date))
- throw error("Bad date passed to 'entry'");
+ throw new error("Bad date passed to 'entry'");
if (++i == end)
- throw error("Too few arguments to 'entry'");
+ throw new error("Too few arguments to 'entry'");
mask_t regexp(*i++);
@@ -169,7 +169,7 @@ entry_t * derive_new_entry(journal_t& journal,
done:
if (! run_hooks(journal.entry_finalize_hooks, *added) ||
! added->finalize())
- throw error("Failed to finalize derived entry (check commodities)");
+ throw new error("Failed to finalize derived entry (check commodities)");
return added.release();
}