diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-19 00:30:29 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-19 00:30:29 -0500 |
commit | 60a281a55a2fd009723c291c6e665b0de743f062 (patch) | |
tree | 8247cf60077ca7cf26548691ade9f8d682249416 /src/value.cc | |
parent | d6274fee19143554f232c9d0d78263bbd19efaed (diff) | |
download | fork-ledger-60a281a55a2fd009723c291c6e665b0de743f062.tar.gz fork-ledger-60a281a55a2fd009723c291c6e665b0de743f062.tar.bz2 fork-ledger-60a281a55a2fd009723c291c6e665b0de743f062.zip |
Corrected an error print in value.cc
Diffstat (limited to 'src/value.cc')
-rw-r--r-- | src/value.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/value.cc b/src/value.cc index c14a7104..2b1b561f 100644 --- a/src/value.cc +++ b/src/value.cc @@ -742,7 +742,7 @@ value_t& value_t::operator/=(const value_t& val) break; } - add_error_context(_("While dividing %1 by %2:") << val << *this); + add_error_context(_("While dividing %1 by %2:") << *this << val); throw_(value_error, _("Cannot divide %1 by %2") << label() << val.label()); return *this; @@ -948,8 +948,7 @@ bool value_t::is_less_than(const value_t& val) const break; } - add_error_context(_("While comparing if %1 is less than %2:") - << *this << val); + add_error_context(_("While comparing if %1 is less than %2:") << *this << val); throw_(value_error, _("Cannot compare %1 to %2") << label() << val.label()); return *this; @@ -1064,8 +1063,7 @@ bool value_t::is_greater_than(const value_t& val) const break; } - add_error_context(_("While comparing if %1 is greater than %2:") - << *this << val); + add_error_context(_("While comparing if %1 is greater than %2:") << *this << val); throw_(value_error, _("Cannot compare %1 to %2") << label() << val.label()); return *this; |