diff --git a/eeschema/sim/sim_model.cpp b/eeschema/sim/sim_model.cpp index edaf430bf7..9e02b120c6 100644 --- a/eeschema/sim/sim_model.cpp +++ b/eeschema/sim/sim_model.cpp @@ -37,6 +37,7 @@ #include #include #include +#include #include #include @@ -711,7 +712,7 @@ std::unique_ptr 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 rawSpiceModel = create( TYPE::SPICE );