Replace the exception handler in another spot

This commit is contained in:
Marek Roszko 2023-04-19 21:21:18 -04:00
parent d97de297af
commit 8f565ef7f0
1 changed files with 2 additions and 21 deletions

View File

@ -452,18 +452,9 @@ struct APP_KICAD : public wxApp
{ {
return wxApp::OnRun(); return wxApp::OnRun();
} }
catch( const std::exception& e )
{
wxLogError( wxT( "Unhandled exception class: %s what: %s" ),
FROM_UTF8( typeid( e ).name() ), FROM_UTF8( e.what() ) );
}
catch( const IO_ERROR& ioe )
{
wxLogError( ioe.What() );
}
catch(...) catch(...)
{ {
wxLogError( wxT( "Unhandled exception of unknown type" ) ); Pgm().HandleException( std::current_exception() );
} }
return -1; return -1;
@ -533,19 +524,9 @@ struct APP_KICAD : public wxApp
{ {
throw; throw;
} }
catch( const std::exception& e )
{
wxLogError( "Unhandled exception class: %s what: %s",
FROM_UTF8( typeid(e).name() ),
FROM_UTF8( e.what() ) );
}
catch( const IO_ERROR& ioe )
{
wxLogError( ioe.What() );
}
catch(...) catch(...)
{ {
wxLogError( "Unhandled exception of unknown type" ); Pgm().HandleException( std::current_exception() );
} }
return false; // continue on. Return false to abort program return false; // continue on. Return false to abort program