diff options
Diffstat (limited to 'derive.cc')
-rw-r--r-- | derive.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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(); } |