From 557269660c1d9796a7cf9e911efb9262f645e359 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 22 Nov 2016 12:10:03 +0200 Subject: Use diagnostics facility from libbutl --- build2/filesystem.cxx | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'build2/filesystem.cxx') 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; } } } -- cgit v1.1