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/archive.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'bpkg/archive.cxx') diff --git a/bpkg/archive.cxx b/bpkg/archive.cxx index 89bb0ed..ee3feab 100644 --- a/bpkg/archive.cxx +++ b/bpkg/archive.cxx @@ -125,12 +125,11 @@ namespace bpkg // archive name. So print the error message whatever the child exit status // is. // - error << "unable to extract " << f << " from " << a; - throw failed (); + fail << "unable to extract " << f << " from " << a << endf; } catch (const process_error& e) { - error << "unable to extract " << f << " from " << a << ": " << e.what (); - throw failed (); + fail << "unable to extract " << f << " from " << a << ": " << e.what () + << endf; } } -- cgit v1.1