Show actual IO_ERROR message at VRML import.

https://gitlab.com/kicad/code/kicad/-/issues/17727


(cherry picked from commit 97b15a1708)
This commit is contained in:
Alex Shvartzkop 2024-04-11 14:36:44 +03:00 committed by dsa-t
parent a9f35ba42e
commit 9c1ece71a3
1 changed files with 4 additions and 2 deletions

View File

@ -232,9 +232,11 @@ SCENEGRAPH* LoadVRML( const wxString& aFileName, bool useInline )
// longer lines then perhaps it shouldn't be used // longer lines then perhaps it shouldn't be used
modelFile = new FILE_LINE_READER( filename, 0, 8388608 ); modelFile = new FILE_LINE_READER( filename, 0, 8388608 );
} }
catch( IO_ERROR & ) catch( IO_ERROR& e )
{ {
wxLogError( wxS( " * " ) + _( "[INFO] load failed: input line too long\n" ) ); wxLogError( wxString( wxS( " * " ) )
<< wxString::Format( _( "[INFO] load failed: %s" ), e.What() ) );
return nullptr; return nullptr;
} }