diff --git a/common/kiway.cpp b/common/kiway.cpp index 92760f68b9..84670d3542 100644 --- a/common/kiway.cpp +++ b/common/kiway.cpp @@ -431,15 +431,17 @@ KIWAY_PLAYER* KIWAY::Player( FRAME_T aFrameType, bool doCreate, wxTopLevelWindow } catch( const IO_ERROR& ioe ) { - DisplayErrorMessage( nullptr, _( "Error loading editor." ), ioe.What() ); + wxLogError( ioe.What() ); + wxLogError( _( "Error loading editor." ) ); } - catch( const std::exception& e) + catch( const std::exception& e ) { - DisplayErrorMessage( nullptr, _( "Error loading editor." ), e.what() ); + wxLogError( e.what() ); + wxLogError( _( "Error loading editor." ) ); } catch( ... ) { - DisplayErrorMessage( nullptr, _( "Error loading editor." ) ); + wxLogError( _( "Error loading editor." ) ); } } diff --git a/kicad/tools/kicad_manager_control.cpp b/kicad/tools/kicad_manager_control.cpp index ac35350ed6..25f3e35e89 100644 --- a/kicad/tools/kicad_manager_control.cpp +++ b/kicad/tools/kicad_manager_control.cpp @@ -754,15 +754,13 @@ int KICAD_MANAGER_CONTROL::ShowPlayer( const TOOL_EVENT& aEvent ) } catch( const IO_ERROR& err ) { - wxMessageBox( _( "Application failed to load:\n" ) + err.What(), _( "KiCad Error" ), - wxOK | wxICON_ERROR, m_frame ); + wxLogError( _( "Application failed to load:\n" ) + err.What() ); return -1; } if ( !player ) { - wxMessageBox( _( "Application failed to load." ), _( "KiCad Error" ), - wxOK | wxICON_ERROR, m_frame ); + wxLogError( _( "Application failed to load." ) ); return -1; }