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/pkg-verify.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bpkg/pkg-verify.cxx') diff --git a/bpkg/pkg-verify.cxx b/bpkg/pkg-verify.cxx index ea072d9..1423d82 100644 --- a/bpkg/pkg-verify.cxx +++ b/bpkg/pkg-verify.cxx @@ -78,7 +78,7 @@ namespace bpkg throw failed (); } } - catch (const ifdstream::failure&) + catch (const io_error&) { if (pr.wait ()) { @@ -157,7 +157,7 @@ namespace bpkg throw failed (); } - catch (const ifdstream::failure& e) + catch (const io_error& e) { if (diag) error << "unable to read from " << mf << ": " << e.what (); -- cgit v1.1