diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-22 12:10:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-22 12:10:03 +0200 |
commit | 557269660c1d9796a7cf9e911efb9262f645e359 (patch) | |
tree | 0323bcb5a90c339fe87fcd193cf71bdcb3431c91 /build2/filesystem.cxx | |
parent | fae6cd2235c907e077dad7b5d8dc9b6d90a78a37 (diff) |
Use diagnostics facility from libbutl
Diffstat (limited to 'build2/filesystem.cxx')
-rw-r--r-- | build2/filesystem.cxx | 18 |
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; } } } |