diff --git a/eeschema/sim/spice_value.cpp b/eeschema/sim/spice_value.cpp index 42b0d8ec54..d31eb7e115 100644 --- a/eeschema/sim/spice_value.cpp +++ b/eeschema/sim/spice_value.cpp @@ -76,7 +76,7 @@ SPICE_VALUE::SPICE_VALUE( const wxString& aString ) case 't': m_prefix = PFX_TERA; break; default: - throw std::invalid_argument( _( "Invalid unit prefix" ) ); + throw KI_PARAM_ERROR( _( "Invalid unit prefix" ) ); } }