diff options
Diffstat (limited to 'build2/context.cxx')
-rw-r--r-- | build2/context.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/build2/context.cxx b/build2/context.cxx index 000d3b2..3e9fe4a 100644 --- a/build2/context.cxx +++ b/build2/context.cxx @@ -339,7 +339,8 @@ namespace build2 if (verb) text << "mkdir " << d; - fail << "unable to create directory " << d << ": " << e.what (); + error << "unable to create directory " << d << ": " << e.what (); + throw failed (); } if (ms == mkdir_status::success) @@ -368,7 +369,8 @@ namespace build2 if (verb) text << "mkdir -p " << d; - fail << "unable to create directory " << d << ": " << e.what (); + error << "unable to create directory " << d << ": " << e.what (); + throw failed (); } if (ms == mkdir_status::success) |