aboutsummaryrefslogtreecommitdiff
path: root/bpkg/archive.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-11-22 12:09:27 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-22 12:09:27 +0200
commit8749eeea8723196fa38a9eb7917775cfe8b87ad7 (patch)
treeb9c3fb8f82ce2227f98d9ee40740906e8d4ab235 /bpkg/archive.cxx
parentaea4e5401af4e28a32d99e0e3c2ecd42888c2ba4 (diff)
Use diagnostics facility from libbutl
Diffstat (limited to 'bpkg/archive.cxx')
-rw-r--r--bpkg/archive.cxx7
1 files changed, 3 insertions, 4 deletions
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;
}
}