More explicit error message for unnumbered pins.
This commit is contained in:
parent
cc825ebafe
commit
13b097396b
|
@ -842,9 +842,18 @@ bool BOARD_NETLIST_UPDATER::testConnectivity( NETLIST& aNetlist,
|
||||||
{
|
{
|
||||||
padNumber = component->GetNet( jj ).GetPinName();
|
padNumber = component->GetNet( jj ).GetPinName();
|
||||||
|
|
||||||
if( footprint->FindPadByNumber( padNumber ) )
|
if( padNumber.IsEmpty() )
|
||||||
continue; // OK, pad found
|
{
|
||||||
|
// bad symbol, report error
|
||||||
|
msg.Printf( _( "Symbol %s has pins with no number. These pins can not be matched "
|
||||||
|
"to pads in %s." ),
|
||||||
|
component->GetReference(),
|
||||||
|
footprint->GetFPID().Format().wx_str() );
|
||||||
|
m_reporter->Report( msg, RPT_SEVERITY_ERROR );
|
||||||
|
++m_errorCount;
|
||||||
|
}
|
||||||
|
else if( !footprint->FindPadByNumber( padNumber ) )
|
||||||
|
{
|
||||||
// not found: bad footprint, report error
|
// not found: bad footprint, report error
|
||||||
msg.Printf( _( "%s pad %s not found in %s." ),
|
msg.Printf( _( "%s pad %s not found in %s." ),
|
||||||
component->GetReference(),
|
component->GetReference(),
|
||||||
|
@ -854,6 +863,7 @@ bool BOARD_NETLIST_UPDATER::testConnectivity( NETLIST& aNetlist,
|
||||||
++m_errorCount;
|
++m_errorCount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue