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/rep-create.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bpkg/rep-create.cxx') diff --git a/bpkg/rep-create.cxx b/bpkg/rep-create.cxx index 2d682f8..da44d3b 100644 --- a/bpkg/rep-create.cxx +++ b/bpkg/rep-create.cxx @@ -5,7 +5,6 @@ #include #include -#include #include #include // dir_iterator @@ -263,7 +262,7 @@ namespace bpkg { fail << "unable to save manifest: " << e.description; } - catch (const ofdstream::failure& e) + catch (const io_error& e) { fail << "unable to write to " << p << ": " << e.what (); } -- cgit v1.1