From db6f5f55f1f0130bba814c494001cbadb138f53f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 11 Sep 2015 13:30:25 +0200 Subject: Handle file io failures in parser --- build/config/operation.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build/config') 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; } } -- cgit v1.1