From 6b06c5dc0f6a8e33ca0fbe98fd36522ca6f3432d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 28 Oct 2022 08:16:50 +0200 Subject: Add ability to disable diagnostics buffering (--no-diag-buffer) --- libbuild2/cc/msvc.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libbuild2/cc') diff --git a/libbuild2/cc/msvc.cxx b/libbuild2/cc/msvc.cxx index 9aff347..765b1c6 100644 --- a/libbuild2/cc/msvc.cxx +++ b/libbuild2/cc/msvc.cxx @@ -187,9 +187,9 @@ namespace build2 break; } } - catch (const io_error&) + catch (const io_error& e) { - // Let the following diag_buffer::read() call deal with this. + fail << "unable to read from " << dbuf.args0 << " stderr: " << e; } void @@ -229,9 +229,9 @@ namespace build2 break; } } - catch (const io_error&) + catch (const io_error& e) { - // Let the following diag_buffer::read() call deal with this. + fail << "unable to read from " << dbuf.args0 << " stderr: " << e; } void -- cgit v1.1