mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
filesystem: wad: print errno if wad can't be opened
This commit is contained in:
parent
00ddd95c27
commit
9cb867a7d4
@ -301,7 +301,7 @@ static wfile_t *W_Open( const char *filename, int *error )
|
|||||||
|
|
||||||
if( wad->handle == NULL )
|
if( wad->handle == NULL )
|
||||||
{
|
{
|
||||||
Con_Reportf( S_ERROR "W_Open: couldn't open %s\n", filename );
|
Con_Reportf( S_ERROR "W_Open: couldn't open %s: %s\n", filename, strerror( errno ));
|
||||||
if( error ) *error = WAD_LOAD_COULDNT_OPEN;
|
if( error ) *error = WAD_LOAD_COULDNT_OPEN;
|
||||||
FS_CloseWAD( wad );
|
FS_CloseWAD( wad );
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user