diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-09-07 20:55:25 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-09-07 20:55:25 (GMT) |
commit | b5bdf2cb0ae3bf3e655b76065050763b092d32f7 (patch) | |
tree | 567ae3a8f8c2c8b92769a57834b032bd9f031dd0 /Source/cmLocalUnixMakefileGenerator.cxx | |
parent | 8f92e8c069dcb3cb943144864274ee75bad36c0d (diff) | |
download | CMake-b5bdf2cb0ae3bf3e655b76065050763b092d32f7.zip CMake-b5bdf2cb0ae3bf3e655b76065050763b092d32f7.tar.gz CMake-b5bdf2cb0ae3bf3e655b76065050763b092d32f7.tar.bz2 |
ENH: add better error reporting for file open failures
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index e5092fe..5d6fc87 100644 --- a/Source/cmLocalUnixMakefileGenerator.cxx +++ b/Source/cmLocalUnixMakefileGenerator.cxx @@ -192,6 +192,7 @@ void cmLocalUnixMakefileGenerator::OutputMakefile(const char* file, if(!fout) { cmSystemTools::Error("Error can not open for write: ", file); + cmSystemTools::ReportLastSystemError(""); return; } fout << "# CMAKE generated Makefile, DO NOT EDIT!\n" |