From 936f511c53ec79d507a0993950f913ccf8b5e30d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 3 Aug 2017 15:35:22 +0200 Subject: Only print mkdir if did create directory --- build2/filesystem.txx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'build2/filesystem.txx') diff --git a/build2/filesystem.txx b/build2/filesystem.txx index 83e3677..fe56498 100644 --- a/build2/filesystem.txx +++ b/build2/filesystem.txx @@ -37,8 +37,7 @@ namespace build2 catch (const system_error& e) { print (); - error << "unable to remove file " << f << ": " << e; - throw failed (); + fail << "unable to remove file " << f << ": " << e << endf; } if (rs == rmfile_status::success) @@ -78,8 +77,7 @@ namespace build2 catch (const system_error& e) { print (); - error << "unable to remove directory " << d << ": " << e; - throw failed (); + fail << "unable to remove directory " << d << ": " << e << endf; } switch (rs) -- cgit v1.1