aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}