aboutsummaryrefslogtreecommitdiff
path: root/build/config
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-11 13:30:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-11 13:30:25 +0200
commitdb6f5f55f1f0130bba814c494001cbadb138f53f (patch)
treef2206b2f46dcd56a692ce003671c6e33c3eda7a5 /build/config
parenta7362cf29a76ef679c9a1ce74715a5d087851b91 (diff)
Handle file io failures in parser
Diffstat (limited to 'build/config')
-rw-r--r--build/config/operation.cxx8
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;
}
}