diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-09-15 17:06:24 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-09-15 17:15:26 +0300 |
commit | 3473cc68f59911cb6659634fdc577f882c8128de (patch) | |
tree | a49450c846bf4ac8ae6159f35f36406cfe58221a /build2/cc/link.cxx | |
parent | 0ce6a95f5fca35888632551181e2c3756e38942c (diff) |
Add io_error alias for std::ios_base::failure
Diffstat (limited to 'build2/cc/link.cxx')
-rw-r--r-- | build2/cc/link.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/cc/link.cxx b/build2/cc/link.cxx index d36e5e1..5ab9d91 100644 --- a/build2/cc/link.cxx +++ b/build2/cc/link.cxx @@ -974,7 +974,7 @@ namespace build2 if (!pr.wait ()) throw failed (); // Assume diagnostics issued. } - catch (const ofdstream::failure& e) + catch (const io_error& e) { if (pr.wait ()) // Ignore if child failed. fail << "unable to pipe resource file to " << args[0] @@ -1489,7 +1489,7 @@ namespace build2 is.close (); } - catch (const ifdstream::failure&) {} // Assume exits with error. + catch (const io_error&) {} // Assume exits with error. } if (!pr.wait ()) |