From 9cb867a7d4a07dcbb4aeb2a40709154041a2be15 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 5 Feb 2023 02:42:35 +0300 Subject: [PATCH] filesystem: wad: print errno if wad can't be opened --- filesystem/wad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filesystem/wad.c b/filesystem/wad.c index adff3ad1..16153429 100644 --- a/filesystem/wad.c +++ b/filesystem/wad.c @@ -301,7 +301,7 @@ static wfile_t *W_Open( const char *filename, int *error ) 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; FS_CloseWAD( wad ); return NULL;