ENH: add better error reporting for file open failures

This commit is contained in:
Bill Hoffman
2004-09-07 16:55:25 -04:00
parent 8f92e8c069
commit b5bdf2cb0a
14 changed files with 17 additions and 2 deletions

View File

@@ -39,6 +39,7 @@ void cmEnableTestingCommand::FinalPass()
if (!fout)
{
cmSystemTools::Error("Error Writing ", fname.c_str());
cmSystemTools::ReportLastSystemError("");
return;
}