From 8b69cab7c802a0d0bd9cc90da33002dd5f86042f Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 15 Sep 2016 16:26:23 +0300 Subject: Add io_error alias for std::ios_base::failure --- bpkg/fetch.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bpkg/fetch.cxx') 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 (); } -- cgit v1.1