diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-22 12:09:27 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-22 12:09:27 +0200 |
commit | 8749eeea8723196fa38a9eb7917775cfe8b87ad7 (patch) | |
tree | b9c3fb8f82ce2227f98d9ee40740906e8d4ab235 /bpkg/fetch.cxx | |
parent | aea4e5401af4e28a32d99e0e3c2ecd42888c2ba4 (diff) |
Use diagnostics facility from libbutl
Diffstat (limited to 'bpkg/fetch.cxx')
-rw-r--r-- | bpkg/fetch.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/bpkg/fetch.cxx b/bpkg/fetch.cxx index 47f4f9b..4ad476b 100644 --- a/bpkg/fetch.cxx +++ b/bpkg/fetch.cxx @@ -632,9 +632,8 @@ namespace bpkg // While it is reasonable to assuming the child process issued // diagnostics, some may not mention the URL. // - error << "unable to fetch " << url << - info << "re-run with -v for more information"; - throw failed (); + fail << "unable to fetch " << url << + info << "re-run with -v for more information" << endf; } static path @@ -682,14 +681,12 @@ namespace bpkg } catch (const manifest_parsing& e) { - error (e.name, e.line, e.column) << e.description; + fail (e.name, e.line, e.column) << e.description << endf; } catch (const io_error& e) { - error << "unable to read from " << f << ": " << e.what (); + fail << "unable to read from " << f << ": " << e.what () << endf; } - - throw failed (); } static const path repositories ("repositories"); |