diff options
Diffstat (limited to 'build2/context.txx')
-rw-r--r-- | build2/context.txx | 6 |
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) |