mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-25 02:41:22 +00:00
Merge pull request #298 from Pan7/errmsg
Error description for file accesses that fail
This commit is contained in:
commit
a3f21a8c41
1 changed files with 2 additions and 1 deletions
|
@ -114,9 +114,10 @@ static void vfsInitPakFile( const char *filename ){
|
||||||
guint32 i;
|
guint32 i;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
errno = 0;
|
||||||
uf = unzOpen( filename );
|
uf = unzOpen( filename );
|
||||||
if ( uf == NULL ) {
|
if ( uf == NULL ) {
|
||||||
g_FuncTable.m_pfnSysFPrintf( SYS_WRN, " failed to init pak file %s\n", filename );
|
g_FuncTable.m_pfnSysFPrintf( SYS_WRN, " failed to init pak file %s. %s\n", filename, ( errno !=0 ? strerror( errno ): "" ) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
g_FuncTable.m_pfnSysPrintf( " pak file: %s\n", filename );
|
g_FuncTable.m_pfnSysPrintf( " pak file: %s\n", filename );
|
||||||
|
|
Loading…
Reference in a new issue