aboutsummaryrefslogtreecommitdiff
path: root/build2/file.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-09-15 17:06:24 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-09-15 17:15:26 +0300
commit3473cc68f59911cb6659634fdc577f882c8128de (patch)
treea49450c846bf4ac8ae6159f35f36406cfe58221a /build2/file.cxx
parent0ce6a95f5fca35888632551181e2c3756e38942c (diff)
Add io_error alias for std::ios_base::failure
Diffstat (limited to 'build2/file.cxx')
-rw-r--r--build2/file.cxx6
1 files changed, 3 insertions, 3 deletions
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 ();
}