Sim Model Editor: Display error when failing to set parameter

This commit is contained in:
Mikolaj Wielgus 2022-09-16 05:44:23 +02:00
parent ce3fe46751
commit d19b2dbfe4
1 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@
#include <sim/spice_grammar.h>
#include <locale_io.h>
#include <lib_symbol.h>
#include <confirm.h>
#include <pegtl.hpp>
#include <pegtl/contrib/parse_tree.hpp>
@ -711,7 +712,7 @@ std::unique_ptr<SIM_MODEL> SIM_MODEL::Create( const wxString& aSpiceCode )
}
catch( const IO_ERROR& e )
{
wxLogDebug( "%s", e.What() );
DisplayErrorMessage( nullptr, e.What() );
// Demote to raw Spice element and try again.
std::unique_ptr<SIM_MODEL> rawSpiceModel = create( TYPE::SPICE );