aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>;