diff options
author | John Wiegley <johnw@newartisans.com> | 2008-09-14 19:38:44 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-09-14 19:38:44 -0400 |
commit | 7d1809cb15b1ebea4d96341ae0e5fc655487788a (patch) | |
tree | fa56bc87e3798b5529640075885271b8fa02f359 /src/value.cc | |
parent | 0135c28049839c2db25351b8d8114f9f31649afc (diff) | |
download | fork-ledger-7d1809cb15b1ebea4d96341ae0e5fc655487788a.tar.gz fork-ledger-7d1809cb15b1ebea4d96341ae0e5fc655487788a.tar.bz2 fork-ledger-7d1809cb15b1ebea4d96341ae0e5fc655487788a.zip |
Transactional assignments (i.e., confirmed balances) are working now.
Diffstat (limited to 'src/value.cc')
-rw-r--r-- | src/value.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/value.cc b/src/value.cc index be78327a..ea0bdf7b 100644 --- a/src/value.cc +++ b/src/value.cc @@ -1263,11 +1263,8 @@ bool value_t::is_realzero() const return as_any_pointer().empty(); default: - assert(false); - break; + throw_(value_error, "Cannot determine if " << label() << " is really zero"); } - assert(false); - return true; } bool value_t::is_zero() const @@ -1296,11 +1293,8 @@ bool value_t::is_zero() const return as_any_pointer().empty(); default: - assert(false); - break; + throw_(value_error, "Cannot determine if " << label() << " is zero"); } - assert(false); - return true; } value_t value_t::value(const optional<datetime_t>& moment) const |