aboutsummaryrefslogtreecommitdiff
path: root/bpkg/fetch.cxx
diff options
context:
space:
mode:
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 ();
}