From adddeca028100355a922cc4e45226ce7f18420c9 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 22 Mar 2017 00:44:52 +0300 Subject: Make use of throw_generic_error() --- build2/cc/windows-rpath.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'build2/cc/windows-rpath.cxx') 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) -- cgit v1.1