Replace the exception handler in another spot
This commit is contained in:
parent
d97de297af
commit
8f565ef7f0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue