aboutsummaryrefslogtreecommitdiff
path: root/build2/filesystem.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/filesystem.cxx')
-rw-r--r--build2/filesystem.cxx18
1 files changed, 6 insertions, 12 deletions
diff --git a/build2/filesystem.cxx b/build2/filesystem.cxx
index c71d2da..5090b77 100644
--- a/build2/filesystem.cxx
+++ b/build2/filesystem.cxx
@@ -28,8 +28,7 @@ namespace build2
if (verb >= v)
text << "mkdir " << d;
- error << "unable to create directory " << d << ": " << e.what ();
- throw failed ();
+ fail << "unable to create directory " << d << ": " << e.what () << endf;
}
if (ms == mkdir_status::success)
@@ -58,8 +57,7 @@ namespace build2
if (verb >= v)
text << "mkdir -p " << d;
- error << "unable to create directory " << d << ": " << e.what ();
- throw failed ();
+ fail << "unable to create directory " << d << ": " << e.what () << endf;
}
if (ms == mkdir_status::success)
@@ -106,8 +104,7 @@ namespace build2
}
catch (const system_error& e)
{
- error << "unable to stat path " << f << ": " << e.what ();
- throw failed ();
+ fail << "unable to stat path " << f << ": " << e.what () << endf;
}
}
@@ -120,8 +117,7 @@ namespace build2
}
catch (const system_error& e)
{
- error << "unable to stat path " << d << ": " << e.what ();
- throw failed ();
+ fail << "unable to stat path " << d << ": " << e.what () << endf;
}
}
@@ -134,8 +130,7 @@ namespace build2
}
catch (const system_error& e)
{
- error << "unable to stat path " << p << ": " << e.what ();
- throw failed ();
+ fail << "unable to stat path " << p << ": " << e.what () << endf;
}
}
@@ -148,8 +143,7 @@ namespace build2
}
catch (const system_error& e)
{
- error << "unable to scan directory " << d << ": " << e.what ();
- throw failed ();
+ fail << "unable to scan directory " << d << ": " << e.what () << endf;
}
}
}