mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-22 01:45:19 +01:00
filesystem: report an error when opening file was unsuccessful, with the exception for non-existent files
This commit is contained in:
parent
a675806c91
commit
c926fee13c
@ -1677,6 +1677,9 @@ file_t *FS_SysOpen( const char *filepath, const char *mode )
|
||||
|
||||
if( file->handle < 0 )
|
||||
{
|
||||
if( errno != ENOENT )
|
||||
Con_Printf( S_ERROR "%s: can't open file %s: %s\n", __func__, filepath, strerror( errno ));
|
||||
|
||||
Mem_Free( file );
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user