diff options
Diffstat (limited to 'build2/file.cxx')
-rw-r--r-- | build2/file.cxx | 6 |
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 (); } |