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

@@ -171,6 +171,7 @@ bool cmVTKWrapPythonCommand::WriteInit(const char *kitName,
FILE *fout = fopen(tempOutputFile.c_str(),"w");
if (!fout)
{
cmSystemTools::ReportLastSystemError("cmVTKWrapPythonCommand error:");
return false;
}