More consistency in DRC error messages.

This commit is contained in:
Jeff Young 2022-04-23 09:39:34 +01:00
parent c6f83b6dec
commit 4525b1f085
2 changed files with 4 additions and 4 deletions

View File

@ -241,7 +241,7 @@ DRC_ITEM DRC_ITEM::diffPairUncoupledLengthTooLong( DRCE_DIFF_PAIR_UNCOUPLED_LENG
wxT( "diff_pair_uncoupled_length_too_long" ) ); wxT( "diff_pair_uncoupled_length_too_long" ) );
DRC_ITEM DRC_ITEM::footprintTypeMismatch( DRCE_FOOTPRINT_TYPE_MISMATCH, DRC_ITEM DRC_ITEM::footprintTypeMismatch( DRCE_FOOTPRINT_TYPE_MISMATCH,
_( "Footprint type doesn't match footprint pads" ), _( "Footprint component type doesn't match footprint pads" ),
wxT( "footprint_type_mismatch" ) ); wxT( "footprint_type_mismatch" ) );
DRC_ITEM DRC_ITEM::footprintTHPadhasNoHole( DRCE_PAD_TH_WITH_NO_HOLE, DRC_ITEM DRC_ITEM::footprintTHPadhasNoHole( DRCE_PAD_TH_WITH_NO_HOLE,

View File

@ -2214,15 +2214,15 @@ void FOOTPRINT::CheckFootprintAttributes( const std::function<void( const wxStri
if( likelyAttr == FP_THROUGH_HOLE ) if( likelyAttr == FP_THROUGH_HOLE )
{ {
msg.Printf( _( "Expected \"Through hole\" type but set to \"%s\"" ), GetTypeName() ); msg.Printf( _( "(expected 'Through hole'; actual '%s')" ), GetTypeName() );
} }
else if( likelyAttr == FP_SMD ) else if( likelyAttr == FP_SMD )
{ {
msg.Printf( _( "Expected \"SMD\" type but set to \"%s\"" ), GetTypeName() ); msg.Printf( _( "(expected 'SMD'; actual '%s')" ), GetTypeName() );
} }
else else
{ {
msg.Printf( _( "Expected \"Other\" type but set to \"%s\"" ), GetTypeName() ); msg.Printf( _( "(expected 'Other'; actual '%s')" ), GetTypeName() );
} }
msg = wxT( "(" ) + msg + wxT( ")" ); msg = wxT( "(" ) + msg + wxT( ")" );