aboutsummaryrefslogtreecommitdiff
path: root/build2/context.txx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-06-03 16:43:46 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-06-18 15:17:29 +0300
commitb0e481a653b01e4329bccb1d101d56e3e878e960 (patch)
treebba1a4cae73ec4ece95f408e079a15d664e49927 /build2/context.txx
parent0d692ec857340a0f16a03d6a7ef38fe864a83cfc (diff)
Port to MinGW
Diffstat (limited to 'build2/context.txx')
-rw-r--r--build2/context.txx6
1 files changed, 4 insertions, 2 deletions
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)