aboutsummaryrefslogtreecommitdiff
path: root/bpkg/fetch.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/fetch.cxx
parent564801acd608513adb07244829735ffb2669685d (diff)
Add io_error alias for std::ios_base::failure
Diffstat (limited to 'bpkg/fetch.cxx')
-rw-r--r--bpkg/fetch.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/bpkg/fetch.cxx b/bpkg/fetch.cxx
index 734c261..33753fb 100644
--- a/bpkg/fetch.cxx
+++ b/bpkg/fetch.cxx
@@ -55,7 +55,7 @@ namespace bpkg
if (!(pr.wait () && l.compare (0, 9, "GNU Wget ") == 0))
return false;
}
- catch (const ifdstream::failure&)
+ catch (const io_error&)
{
return false;
}
@@ -195,7 +195,7 @@ namespace bpkg
return pr.wait () && l.compare (0, 5, "curl ") == 0;
}
- catch (const ifdstream::failure&)
+ catch (const io_error&)
{
// Fall through.
}
@@ -306,7 +306,7 @@ namespace bpkg
return l.compare (0, 13, "usage: fetch ") == 0;
}
- catch (const ifdstream::failure&)
+ catch (const io_error&)
{
// Fall through.
}
@@ -608,7 +608,7 @@ namespace bpkg
if (pr.wait ())
fail (e.name, e.line, e.column) << e.description;
}
- catch (const ifdstream::failure&)
+ catch (const io_error&)
{
if (pr.wait ())
fail << "unable to read fetched " << url;
@@ -673,7 +673,7 @@ namespace bpkg
{
error (e.name, e.line, e.column) << e.description;
}
- catch (const ifdstream::failure& e)
+ catch (const io_error& e)
{
error << "unable to read from " << f << ": " << e.what ();
}