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:
parent
d16c28911e
commit
19708d2a75
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user