From b0e481a653b01e4329bccb1d101d56e3e878e960 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 3 Jun 2016 16:43:46 +0300 Subject: Port to MinGW --- build2/context.txx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'build2/context.txx') diff --git a/build2/context.txx b/build2/context.txx index 3233092..1f3fce9 100644 --- a/build2/context.txx +++ b/build2/context.txx @@ -35,7 +35,8 @@ namespace build2 else if (verb >= l2) text << "rm " << t; - fail << "unable to remove file " << f << ": " << e.what (); + error << "unable to remove file " << f << ": " << e.what (); + throw failed (); } if (rs == rmfile_status::success) @@ -74,7 +75,8 @@ namespace build2 else if (verb) text << "rmdir " << t; - fail << "unable to remove directory " << d << ": " << e.what (); + error << "unable to remove directory " << d << ": " << e.what (); + throw failed (); } switch (rs) -- cgit v1.1