aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/windows-rpath.cxx
diff options
context:
space:
mode:
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)