aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-03-21 21:37:16 (GMT)
committerKaren Arutyunov <karen@codesynthesis.com>2017-03-21 21:43:10 (GMT)
commitec2de46b66e935d892f2d237929aa7a430a3f18f (patch)
treea7ff184edec9c13f0941d9f512b9349501bdf14c
parent062d396630e8f81f85f3642135e6f096c58d9037 (diff)
Make use of throw_generic_error()
-rw-r--r--msvc-common/msvc-filter.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/msvc-common/msvc-filter.cxx b/msvc-common/msvc-filter.cxx
index 7e7cdec..85cd3b9 100644
--- a/msvc-common/msvc-filter.cxx
+++ b/msvc-common/msvc-filter.cxx
@@ -16,7 +16,7 @@
#include <unordered_map>
#include <butl/path> // path::traits::realize()
-#include <butl/utility> // alpha()
+#include <butl/utility> // alpha(), throw_generic_error()
#include <butl/process>
#include <butl/fdstream>
@@ -136,7 +136,7 @@ filter (const char* s, size_t n, ostream& os)
// non-existent path. Anyway will consider it fatal.
//
if (!pr.wait ())
- throw system_error (ECHILD, system_category ());
+ throw_generic_error (ECHILD);
try
{
@@ -290,7 +290,7 @@ try
if (errno == EINTR)
continue;
- throw system_error (errno, system_category ());
+ throw_generic_error (errno);
}
// Timeout occured. Apply wineserver bug workaround if required.