From 3473cc68f59911cb6659634fdc577f882c8128de Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 15 Sep 2016 17:06:24 +0300 Subject: Add io_error alias for std::ios_base::failure --- build2/config/operation.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/config') diff --git a/build2/config/operation.cxx b/build2/config/operation.cxx index 83365f7..0aa554f 100644 --- a/build2/config/operation.cxx +++ b/build2/config/operation.cxx @@ -55,7 +55,7 @@ namespace build2 ofs.close (); } - catch (const ofdstream::failure& e) + catch (const io_error& e) { fail << "unable to write " << f << ": " << e.what (); } @@ -275,7 +275,7 @@ namespace build2 ofs.close (); } - catch (const ofdstream::failure& e) + catch (const io_error& e) { fail << "unable to write " << f << ": " << e.what (); } -- cgit v1.1