summaryrefslogtreecommitdiff
path: root/src/filters.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-08 20:05:56 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-08 20:05:56 -0400
commit02bd9d29cf7c899b5be4575f00f967e277aece99 (patch)
treef976a7ea86b4792222cf2313affab7762f2cf51b /src/filters.cc
parent4f5799c216df4a1b57bc5c59f286a685b0f77448 (diff)
downloadledger-02bd9d29cf7c899b5be4575f00f967e277aece99.tar.gz
ledger-02bd9d29cf7c899b5be4575f00f967e277aece99.tar.bz2
ledger-02bd9d29cf7c899b5be4575f00f967e277aece99.zip
Improved an error message that was trying to show transaction context.
Diffstat (limited to 'src/filters.cc')
-rw-r--r--src/filters.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/filters.cc b/src/filters.cc
index a0d65478..b19c36f1 100644
--- a/src/filters.cc
+++ b/src/filters.cc
@@ -198,8 +198,7 @@ void calc_xacts::operator()(xact_t& xact)
last_xact = &xact;
}
catch (const std::exception& err) {
- add_error_context("While calculating transaction:");
- add_error_context(item_context(xact));
+ add_error_context(item_context(xact, "While calculating transaction"));
throw;
}
}