From 8749eeea8723196fa38a9eb7917775cfe8b87ad7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 22 Nov 2016 12:09:27 +0200 Subject: Use diagnostics facility from libbutl --- bpkg/rep-create.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bpkg/rep-create.cxx') diff --git a/bpkg/rep-create.cxx b/bpkg/rep-create.cxx index ac58936..43f052c 100644 --- a/bpkg/rep-create.cxx +++ b/bpkg/rep-create.cxx @@ -167,8 +167,7 @@ namespace bpkg } catch (const system_error& e) { - error << "unable to scan directory " << d << ": " << e.what (); - throw failed (); + fail << "unable to scan directory " << d << ": " << e.what () << endf; } int @@ -278,7 +277,6 @@ namespace bpkg } catch (const invalid_path& e) { - error << "invalid path: '" << e.path << "'"; - throw failed (); + fail << "invalid path: '" << e.path << "'" << endf; } } -- cgit v1.1