Attempt to prevent KICAD-YP.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17560
(cherry picked from commit a53bc9e026)
This commit is contained in:
@@ -327,8 +327,9 @@ const FP_LIB_TABLE_ROW* FP_LIB_TABLE::FindRow( const wxString& aNickname, bool a
|
||||
|
||||
if( !row )
|
||||
{
|
||||
wxString msg = wxString::Format( _( "fp-lib-table files contain no library named '%s'." ),
|
||||
aNickname );
|
||||
// We don't generally show this string to the user (who is unlikely to know what
|
||||
// "fp-lib-table" means), and translating it may produce Sentry KICAD-YP.
|
||||
wxString msg = wxString::Format( wxS( "'%s' not found in fp-lib-table." ), aNickname );
|
||||
THROW_IO_ERROR( msg );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user