aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/algorithm.cxx')
-rw-r--r--build2/algorithm.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/build2/algorithm.cxx b/build2/algorithm.cxx
index 9357632..c9396ef 100644
--- a/build2/algorithm.cxx
+++ b/build2/algorithm.cxx
@@ -487,7 +487,8 @@ namespace build2
}
catch (const std::exception& e)
{
- *diag_stream << "unhandled exception: " << e;
+ diag_lock l;
+ *diag_stream << "unhandled exception: " << e << endl;
assert (false);
abort ();
}
@@ -789,7 +790,8 @@ namespace build2
}
catch (const std::exception& e)
{
- *diag_stream << "unhandled exception: " << e;
+ diag_lock l;
+ *diag_stream << "unhandled exception: " << e << endl;
assert (false);
abort ();
}