aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/msvc.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-10-28 08:16:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-10-28 08:16:50 +0200
commit6b06c5dc0f6a8e33ca0fbe98fd36522ca6f3432d (patch)
tree3cd8b3b24a86484a92a5be76ddfeb995725530da /libbuild2/cc/msvc.cxx
parent6b9dbfaaf2b3dfdf3627b57c7f15c6a3cd105f35 (diff)
Add ability to disable diagnostics buffering (--no-diag-buffer)
Diffstat (limited to 'libbuild2/cc/msvc.cxx')
-rw-r--r--libbuild2/cc/msvc.cxx8
1 files changed, 4 insertions, 4 deletions
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