aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-01 17:54:27 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-01 17:54:27 +0200
commitb030b18f5428f6555093980ecb3d508b4ef6fa4c (patch)
treefbd10bed4c62d0ccf46e11cbe6f7a27633b75331
parent967f48c3c9fe62db608cef3b41cc23fd61a5a0be (diff)
Adjust to new diagnostics epilogue semantics
-rw-r--r--bpkg/diagnostics6
1 files changed, 5 insertions, 1 deletions
diff --git a/bpkg/diagnostics b/bpkg/diagnostics
index 3ae1b72..a1a785f 100644
--- a/bpkg/diagnostics
+++ b/bpkg/diagnostics
@@ -210,7 +210,11 @@ namespace bpkg
: basic_mark_base (type,
nullptr,
data,
- [](const diag_record&) {throw failed ();}) {}
+ [](const diag_record& r)
+ {
+ r.flush ();
+ throw failed ();
+ }) {}
};
using fail_mark = butl::diag_mark<fail_mark_base>;