diff options
Diffstat (limited to 'src/amount.cc')
-rw-r--r-- | src/amount.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amount.cc b/src/amount.cc index 2f28e2d4..3fb8ddaf 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -263,9 +263,9 @@ amount_t& amount_t::operator+=(const amount_t& amt) if (! quantity || ! amt.quantity) { if (quantity) - throw_(amount_error, "Cannot add an amount to an uninitialized amount"); - else if (amt.quantity) throw_(amount_error, "Cannot add an uninitialized amount to an amount"); + else if (amt.quantity) + throw_(amount_error, "Cannot add an amount to an uninitialized amount"); else throw_(amount_error, "Cannot add two uninitialized amounts"); } |