spice_library_parser: catch an exception thrown when a spice model cannot be built.
Fixes #15012 https://gitlab.com/kicad/code/kicad/-/issues/15012
This commit is contained in:
parent
7d6cb4e77b
commit
a9fff82664
|
@ -161,6 +161,12 @@ void SPICE_LIBRARY_PARSER::parseFile( const wxString &aFilePath, REPORTER& aRepo
|
|||
{
|
||||
aReporter.Report( e.What(), RPT_SEVERITY_ERROR );
|
||||
}
|
||||
catch( ... )
|
||||
{
|
||||
aReporter.Report( wxString::Format( _( "Cannot create sim model from %s" ),
|
||||
model ),
|
||||
RPT_SEVERITY_ERROR );
|
||||
}
|
||||
}
|
||||
else if( node->is_type<SIM_LIBRARY_SPICE_PARSER::dotInclude>() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue