Show what file is failed to open for writing

Show what file is failed to open for writing

diff --git a/src/engine/framework/FileSystem.cpp b/src/engine/framework/FileSystem.cpp
index 1bb0052..e3dd8e2 100644
--- a/src/engine/framework/FileSystem.cpp
+++ b/src/engine/framework/FileSystem.cpp
@@ -715,6 +715,11 @@ fileHandle_t idFileSystemLocal::SV_FOpenFileWrite( pointer filename )
     Com_DPrintf( "idFileSystemLocal::SV_FOpenFileWrite: writing to: %s\n", ospath );
     fsh[f].handleFiles.file.o = fopen( ospath, "wb" );
     
+    if( !fsh[f].handleFiles.file.o )
+    {
+        Com_Printf( "idFileSystemLocal::SV_FOpenFileWrite:(%s) failed to open for writing\n", ospath );
+    }
+    
     Q_strncpyz( fsh[f].name, filename, sizeof( fsh[f].name ) );
     
     fsh[f].handleSync = false;
@@ -943,6 +948,11 @@ fileHandle_t idFileSystemLocal::FOpenFileWrite( pointer filename )
     
     Q_strncpyz( fsh[f].name, filename, sizeof( fsh[f].name ) );
     
+    if( !fsh[f].handleFiles.file.o )
+    {
+        Com_Printf( "idFileSystemLocal::FOpenFileWrite(%s) failed to open for writing\n", ospath );
+    }
+    
     fsh[f].handleSync = false;
     
     if( !fsh[f].handleFiles.file.o )

GitHub
sha: 744e4220