Error reporting for missing ltspice symbol (.asy) files.
This commit is contained in:
parent
29d2265c01
commit
aa8dbc03a2
|
@ -463,7 +463,12 @@ void LTSPICE_SCHEMATIC::removeCarriageReturn( wxString& elementFromLine )
|
||||||
LTSPICE_SCHEMATIC::LT_SYMBOL LTSPICE_SCHEMATIC::SymbolBuilder( const wxString& aAscFileName,
|
LTSPICE_SCHEMATIC::LT_SYMBOL LTSPICE_SCHEMATIC::SymbolBuilder( const wxString& aAscFileName,
|
||||||
LT_ASC& aAscFile )
|
LT_ASC& aAscFile )
|
||||||
{
|
{
|
||||||
return SymbolBuilder( aAscFileName, m_fileCache[ wxS( "asyFiles" ) ][ aAscFileName ], aAscFile );
|
const std::map<wxString, wxString>& asyFiles = m_fileCache[ wxS( "asyFiles" ) ];
|
||||||
|
|
||||||
|
if( !asyFiles.count( aAscFileName ) )
|
||||||
|
THROW_IO_ERROR( wxString::Format( _( "Symbol '%s.asy' not found" ), aAscFileName ) );
|
||||||
|
|
||||||
|
return SymbolBuilder( aAscFileName, asyFiles.at( aAscFileName ), aAscFile );
|
||||||
}
|
}
|
||||||
|
|
||||||
LTSPICE_SCHEMATIC::LT_SYMBOL LTSPICE_SCHEMATIC::SymbolBuilder( const wxString& aAscFileName,
|
LTSPICE_SCHEMATIC::LT_SYMBOL LTSPICE_SCHEMATIC::SymbolBuilder( const wxString& aAscFileName,
|
||||||
|
|
Loading…
Reference in New Issue