More consistency in DRC error messages.
This commit is contained in:
parent
c6f83b6dec
commit
4525b1f085
|
@ -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,
|
||||||
|
|
|
@ -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( ")" );
|
||||||
|
|
Loading…
Reference in New Issue