summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-09-14 19:38:44 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-09-14 19:38:44 -0400
commit7d1809cb15b1ebea4d96341ae0e5fc655487788a (patch)
treefa56bc87e3798b5529640075885271b8fa02f359 /src/value.cc
parent0135c28049839c2db25351b8d8114f9f31649afc (diff)
downloadfork-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.cc10
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