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/cc/compile.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build2/cc/compile.cxx') 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 ()) -- cgit v1.1