Update errors count when errors are logged.
Fixes https://gitlab.com/kicad/code/kicad/issues/12800
This commit is contained in:
parent
4ad0eeefc6
commit
d8ddeea14a
|
@ -978,6 +978,7 @@ bool BOARD_NETLIST_UPDATER::UpdateNetlist( NETLIST& aNetlist )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Multiple footprints found for '%s'." ), component->GetReference() );
|
msg.Printf( _( "Multiple footprints found for '%s'." ), component->GetReference() );
|
||||||
m_reporter->Report( msg, RPT_SEVERITY_ERROR );
|
m_reporter->Report( msg, RPT_SEVERITY_ERROR );
|
||||||
|
m_errorCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1016,6 +1017,7 @@ bool BOARD_NETLIST_UPDATER::UpdateNetlist( NETLIST& aNetlist )
|
||||||
}
|
}
|
||||||
|
|
||||||
m_reporter->Report( msg, RPT_SEVERITY_ERROR );
|
m_reporter->Report( msg, RPT_SEVERITY_ERROR );
|
||||||
|
m_errorCount++;
|
||||||
doDelete = false;
|
doDelete = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue