summaryrefslogtreecommitdiff
path: root/walk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'walk.cc')
-rw-r--r--walk.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/walk.cc b/walk.cc
index bf93ea92..61681808 100644
--- a/walk.cc
+++ b/walk.cc
@@ -217,9 +217,11 @@ void calc_xacts::operator()(xact_t& xact)
last_xact = &xact;
}
- catch (error * err) {
- err->context.push_front
- (new xact_context(xact, "Calculating transaction at"));
+ catch (const std::exception& err) {
+ add_error_context("Calculating transaction at");
+#if 0
+ add_error_context(xact_context(xact));
+#endif
throw err;
}
}