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/file.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build2/file.cxx') diff --git a/build2/file.cxx b/build2/file.cxx index 8239d1f..eaf503d 100644 --- a/build2/file.cxx +++ b/build2/file.cxx @@ -104,7 +104,7 @@ namespace build2 parser p (boot); p.parse_buildfile (is, bf, root, base); } - catch (const ifdstream::failure& e) + catch (const io_error& e) { fail << "unable to read buildfile " << bf << ": " << e.what (); } @@ -303,7 +303,7 @@ namespace build2 // return make_pair (move (*v), true); } - catch (const ifdstream::failure& e) + catch (const io_error& e) { error << "unable to read buildfile " << bf << ": " << e.what (); throw failed (); @@ -1027,7 +1027,7 @@ namespace build2 parser p; return p.parse_export_stub (ifs, es, iroot, ts); } - catch (const ifdstream::failure& e) + catch (const io_error& e) { fail (loc) << "unable to read buildfile " << es << ": " << e.what (); } -- cgit v1.1