7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 00:21:25 +00:00

design blocks: add error message when necessary

This commit is contained in:
Mike Williams 2025-01-28 10:02:45 -05:00
parent d16c28911e
commit 19708d2a75

View File

@ -193,6 +193,11 @@ wxString DESIGN_BLOCK_TREE_MODEL_ADAPTER::GenerateInfo( LIB_ID const& aLibId, in
html.Replace( "__FIELDS__", fieldTable );
}
else
{
html.Printf( _( "Error loading design block %s from library '%s'." ) + wxS( "\n" ),
aLibId.GetLibItemName().wx_str(), aLibId.GetLibNickname().wx_str() );
}
return html;
}