aboutsummaryrefslogtreecommitdiff
path: root/build2/parser.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-09-15 17:06:24 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-09-15 17:15:26 +0300
commit3473cc68f59911cb6659634fdc577f882c8128de (patch)
treea49450c846bf4ac8ae6159f35f36406cfe58221a /build2/parser.cxx
parent0ce6a95f5fca35888632551181e2c3756e38942c (diff)
Add io_error alias for std::ios_base::failure
Diffstat (limited to 'build2/parser.cxx')
-rw-r--r--build2/parser.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/build2/parser.cxx b/build2/parser.cxx
index 1bc3519..05a2594 100644
--- a/build2/parser.cxx
+++ b/build2/parser.cxx
@@ -4,7 +4,7 @@
#include <build2/parser>
-#include <iostream>
+#include <iostream> // cout
#include <build2/version>
@@ -821,7 +821,7 @@ namespace build2
lexer_ = ol;
path_ = op;
}
- catch (const ifdstream::failure& e)
+ catch (const io_error& e)
{
fail (l) << "unable to read buildfile " << p << ": " << e.what ();
}
@@ -957,7 +957,7 @@ namespace build2
lexer_ = ol;
path_ = op;
}
- catch (const ifdstream::failure& e)
+ catch (const io_error& e)
{
fail (l) << "unable to read buildfile " << p << ": " << e.what ();
}