diff options
author | John Wiegley <johnw@newartisans.com> | 2011-07-17 15:28:11 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2011-07-17 15:28:11 -0500 |
commit | c4a3a7bbe553e2b1adaeb845dc9e675ccdfd6fdb (patch) | |
tree | ce278364d5950e6cef1d75d01ce3f5df46062bbf /src/op.cc | |
parent | 976ba4907d6d85073bb57012eb337a3373b2e790 (diff) | |
download | fork-ledger-c4a3a7bbe553e2b1adaeb845dc9e675ccdfd6fdb.tar.gz fork-ledger-c4a3a7bbe553e2b1adaeb845dc9e675ccdfd6fdb.tar.bz2 fork-ledger-c4a3a7bbe553e2b1adaeb845dc9e675ccdfd6fdb.zip |
Changed an assert into a proper exception
Diffstat (limited to 'src/op.cc')
-rw-r--r-- | src/op.cc | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -421,10 +421,8 @@ value_t expr_t::op_t::calc(scope_t& scope, ptr_op_t * locus, const int depth) break; } - case LAST: default: - assert(false); - break; + throw_(calc_error, _("Unexpected expr node '%1'") << op_context(this)); } #if defined(DEBUG_ON) |