diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-02 00:24:26 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-02 00:24:26 -0400 |
commit | 9540406af15d522d15c94cc3d63c77b7da7e1423 (patch) | |
tree | 6dd912aac2adb018c16a8b506bc0e18eb8444caa /src/filters.cc | |
parent | ef3943c60498ab0fd4de1f1735109b0d103c167a (diff) | |
download | ledger-9540406af15d522d15c94cc3d63c77b7da7e1423.tar.gz ledger-9540406af15d522d15c94cc3d63c77b7da7e1423.tar.bz2 ledger-9540406af15d522d15c94cc3d63c77b7da7e1423.zip |
Simplified error context handling.
Diffstat (limited to 'src/filters.cc')
-rw-r--r-- | src/filters.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/filters.cc b/src/filters.cc index 4b8c7162..d91d12ff 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -201,10 +201,8 @@ void calc_xacts::operator()(xact_t& xact) last_xact = &xact; } catch (const std::exception& err) { - add_error_context("Calculating transaction at"); -#if 0 - add_error_context(xact_context(xact)); -#endif + add_error_context("While calculating transaction:"); + add_error_context(item_context(xact)); throw; } } |