diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-11 13:30:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-11 13:30:25 +0200 |
commit | db6f5f55f1f0130bba814c494001cbadb138f53f (patch) | |
tree | f2206b2f46dcd56a692ce003671c6e33c3eda7a5 /build/config/operation.cxx | |
parent | a7362cf29a76ef679c9a1ce74715a5d087851b91 (diff) |
Handle file io failures in parser
Diffstat (limited to 'build/config/operation.cxx')
-rw-r--r-- | build/config/operation.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build/config/operation.cxx b/build/config/operation.cxx index 9d7c9b3..cab6520 100644 --- a/build/config/operation.cxx +++ b/build/config/operation.cxx @@ -57,9 +57,9 @@ namespace build << "#" << endl << "src_root = " << src_root << endl; } - catch (const ios_base::failure&) + catch (const ofstream::failure&) { - fail << "failed to write to " << f; + fail << "unable to write " << f; } } @@ -125,9 +125,9 @@ namespace build } } } - catch (const ios_base::failure&) + catch (const ofstream::failure&) { - fail << "failed to write to " << f; + fail << "unable to write " << f; } } |