Add debugging info to vrml reader

This commit is contained in:
Seth Hillbrand 2024-02-02 16:35:20 +01:00
parent d44b04978a
commit 42f17dfbef
1 changed files with 10 additions and 1 deletions

View File

@ -202,8 +202,17 @@ SCENEGRAPH* LoadVRML( const wxString& aFileName, bool useInline )
{
expanded = gzip::decompress( buffer, size );
}
catch(...)
catch( std::runtime_error& e )
{
wxLogDebug( wxT( " * [INFO] wrz load failed: %s" ), wxString::FromUTF8Unchecked( e.what() ) );
delete[] buffer;
return nullptr;
}
catch( ... )
{
wxLogDebug( wxT( " * [INFO] wrz load failed: unknown error" ) );
delete[] buffer;
return nullptr;
}