aboutsummaryrefslogtreecommitdiff
path: root/bpkg/checksum.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-09-15 16:26:23 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-09-16 13:03:13 +0300
commit8b69cab7c802a0d0bd9cc90da33002dd5f86042f (patch)
treeb7bc7c020ffb440b5b8f203ed4a91d9f0f5793a2 /bpkg/checksum.cxx
parent564801acd608513adb07244829735ffb2669685d (diff)
Add io_error alias for std::ios_base::failure
Diffstat (limited to 'bpkg/checksum.cxx')
-rw-r--r--bpkg/checksum.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/bpkg/checksum.cxx b/bpkg/checksum.cxx
index 3f52204..8940952 100644
--- a/bpkg/checksum.cxx
+++ b/bpkg/checksum.cxx
@@ -48,7 +48,7 @@ namespace bpkg
l ==
"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";
}
- catch (const ifdstream::failure&)
+ catch (const io_error&)
{
// Fall through.
}
@@ -110,7 +110,7 @@ namespace bpkg
return pr.wait () && l.compare (0, 9, "sha256sum") == 0;
}
- catch (const ifdstream::failure&)
+ catch (const io_error&)
{
// Fall through.
}
@@ -172,7 +172,7 @@ namespace bpkg
return pr.wait () && l.size () != 0 && l[0] >= '0' && l[0] <= '9';
}
- catch (const ifdstream::failure&)
+ catch (const io_error&)
{
// Fall through.
}
@@ -359,7 +359,7 @@ namespace bpkg
// Ignore these exceptions if the child process exited with an error status
// since that's the source of the failure.
//
- catch (const iostream::failure&)
+ catch (const io_error&)
{
if (pr.wait ())
fail << "unable to read/write '" << sha256_path << "' output/input";
@@ -411,7 +411,7 @@ namespace bpkg
ifdstream ifs (f, ios::binary);
return sha256 (o, ifs);
}
- catch (const iostream::failure& e)
+ catch (const io_error& e)
{
error << "unable read " << f << ": " << e.what ();
throw failed ();