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/compile.cxx | |
parent | 0ce6a95f5fca35888632551181e2c3756e38942c (diff) |
Add io_error alias for std::ios_base::failure
Diffstat (limited to 'build2/cc/compile.cxx')
-rw-r--r-- | build2/cc/compile.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build2/cc/compile.cxx b/build2/cc/compile.cxx index 2dc2a28..6587d8c 100644 --- a/build2/cc/compile.cxx +++ b/build2/cc/compile.cxx @@ -1201,7 +1201,7 @@ namespace build2 if (is.eof ()) // Trailing newline. break; - throw ifdstream::failure (""); + throw io_error (""); } l6 ([&]{trace << "header dependency line '" << l << "'";}); @@ -1349,7 +1349,7 @@ namespace build2 fail << "expected error exist status from " << x_lang << " compiler"; } - catch (const ifdstream::failure&) + catch (const io_error&) { pr.wait (); fail << "unable to read " << x_lang << " compiler header " @@ -1567,7 +1567,7 @@ namespace build2 is.close (); } - catch (const ifdstream::failure&) {} // Assume exits with error. + catch (const io_error&) {} // Assume exits with error. } if (!pr.wait ()) |