mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06:00
ENH: add better error reporting for file open failures
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user