From 411947ab4564c541398a00d969fa92bec4cbb9f3 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 23 Mar 2019 23:16:47 +0300 Subject: Fix bdep-new crash due to unhandled ios::failure for older libstdc++ --- bdep/new.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bdep') 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; } -- cgit v1.1