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/b.cxx | |
parent | 0ce6a95f5fca35888632551181e2c3756e38942c (diff) |
Add io_error alias for std::ios_base::failure
Diffstat (limited to 'build2/b.cxx')
-rw-r--r-- | build2/b.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build2/b.cxx b/build2/b.cxx index 8031559..d16a406 100644 --- a/build2/b.cxx +++ b/build2/b.cxx @@ -9,7 +9,7 @@ #include <sstream> #include <cstring> // strcmp(), strchr() #include <typeinfo> -#include <iostream> +#include <iostream> // cout #include <butl/pager> @@ -195,8 +195,8 @@ main (int argc, char* argv[]) // return p.wait () ? 0 : 1; } - // Catch ios_base::failure as std::system_error together with the - // pager-specific exceptions. + // Catch io_error as std::system_error together with the pager-specific + // exceptions. // catch (const system_error& e) { @@ -273,7 +273,7 @@ main (int argc, char* argv[]) parser p; bspec = p.parse_buildspec (is, path ("<buildspec>")); } - catch (const istringstream::failure&) + catch (const io_error&) { fail << "unable to parse buildspec '" << args << "'"; } |