aboutsummaryrefslogtreecommitdiff
path: root/bpkg/checksum.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/checksum.cxx
parentaea4e5401af4e28a32d99e0e3c2ecd42888c2ba4 (diff)
Use diagnostics facility from libbutl
Diffstat (limited to 'bpkg/checksum.cxx')
-rw-r--r--bpkg/checksum.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/bpkg/checksum.cxx b/bpkg/checksum.cxx
index 1254749..3d90edc 100644
--- a/bpkg/checksum.cxx
+++ b/bpkg/checksum.cxx
@@ -384,10 +384,8 @@ namespace bpkg
// While it is reasonable to assuming the child process issued diagnostics,
// issue something just in case.
//
- error << "unable to calculate SHA256 sum using '" << sha256_path << "'" <<
- info << "re-run with -v for more information";
-
- throw failed ();
+ fail << "unable to calculate SHA256 sum using '" << sha256_path << "'" <<
+ info << "re-run with -v for more information" << endf;
}
struct memstreambuf: streambuf
@@ -425,8 +423,7 @@ namespace bpkg
}
catch (const io_error& e)
{
- error << "unable read " << f << ": " << e.what ();
- throw failed ();
+ fail << "unable read " << f << ": " << e.what () << endf;
}
}
}