aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-03-23 23:16:47 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-03-23 23:16:47 +0300
commit411947ab4564c541398a00d969fa92bec4cbb9f3 (patch)
tree35382aad3153e1f214e547827d03aea48d8ba1cc
parent51e1d64dccf4967eb078858529a0d7f05b8b461e (diff)
Fix bdep-new crash due to unhandled ios::failure for older libstdc++
-rw-r--r--bdep/new.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index 55b6f8c..11ac8f4 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -1658,9 +1658,11 @@ namespace bdep
{
fail << "invalid post hook '" << cmd << "': " << e;
}
- // Handle process_error and io_error (both derive from system_error).
- //
- catch (const system_error& e)
+ catch (const io_error& e)
+ {
+ fail << "unable to execute post hook '" << cmd << "': " << e;
+ }
+ catch (const process_error& e)
{
fail << "unable to execute post hook '" << cmd << "': " << e;
}