eeschema: Fix crash when rescuing during update

This commit is contained in:
Seth Hillbrand 2020-08-18 06:34:34 -07:00
parent 1905a23ba1
commit c2847e00d8
1 changed files with 6 additions and 3 deletions

View File

@ -633,9 +633,12 @@ void SCH_SCREEN::UpdateSymbolLinks( REPORTER* aReporter )
} }
catch( const IO_ERROR& ioe ) catch( const IO_ERROR& ioe )
{ {
msg.Printf( _( "I/O error %s resolving library symbol %s" ), ioe.What(), if( aReporter )
symbol->GetLibId().Format().wx_str() ); {
aReporter->ReportTail( msg, RPT_SEVERITY_ERROR ); msg.Printf( _( "I/O error %s resolving library symbol %s" ), ioe.What(),
symbol->GetLibId().Format().wx_str() );
aReporter->ReportTail( msg, RPT_SEVERITY_ERROR );
}
} }
} }