aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/windows-rpath.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-03-22 00:44:52 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-03-22 00:44:52 +0300
commitadddeca028100355a922cc4e45226ce7f18420c9 (patch)
treee056441415e76531c7b1137264b9238ac8056c05 /build2/cc/windows-rpath.cxx
parent330820504e2f231b9e0255142147e2b7939bce0b (diff)
Make use of throw_generic_error()
Diffstat (limited to 'build2/cc/windows-rpath.cxx')
-rw-r--r--build2/cc/windows-rpath.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/build2/cc/windows-rpath.cxx b/build2/cc/windows-rpath.cxx
index 383663f..0b34963 100644
--- a/build2/cc/windows-rpath.cxx
+++ b/build2/cc/windows-rpath.cxx
@@ -315,6 +315,10 @@ namespace build2
}
catch (const system_error& e)
{
+ // Make sure that the error denotes errno portable code.
+ //
+ assert (e.code ().category () == generic_category ());
+
int c (e.code ().value ());
if (c != EPERM && c != ENOSYS)
@@ -330,6 +334,10 @@ namespace build2
}
catch (const system_error& e)
{
+ // Make sure the error reflects errno portable code.
+ //
+ assert (e.code ().category () == generic_category ());
+
int c (e.code ().value ());
if (c != EPERM && c != ENOSYS)