More explicit error message for unnumbered pins.
This commit is contained in:
parent
cc825ebafe
commit
13b097396b
|
@ -842,16 +842,26 @@ 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
|
||||||
// not found: bad footprint, report error
|
msg.Printf( _( "Symbol %s has pins with no number. These pins can not be matched "
|
||||||
msg.Printf( _( "%s pad %s not found in %s." ),
|
"to pads in %s." ),
|
||||||
component->GetReference(),
|
component->GetReference(),
|
||||||
padNumber,
|
footprint->GetFPID().Format().wx_str() );
|
||||||
footprint->GetFPID().Format().wx_str() );
|
m_reporter->Report( msg, RPT_SEVERITY_ERROR );
|
||||||
m_reporter->Report( msg, RPT_SEVERITY_ERROR );
|
++m_errorCount;
|
||||||
++m_errorCount;
|
}
|
||||||
|
else if( !footprint->FindPadByNumber( padNumber ) )
|
||||||
|
{
|
||||||
|
// not found: bad footprint, report error
|
||||||
|
msg.Printf( _( "%s pad %s not found in %s." ),
|
||||||
|
component->GetReference(),
|
||||||
|
padNumber,
|
||||||
|
footprint->GetFPID().Format().wx_str() );
|
||||||
|
m_reporter->Report( msg, RPT_SEVERITY_ERROR );
|
||||||
|
++m_errorCount;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue