Update errors count when errors are logged.

Fixes https://gitlab.com/kicad/code/kicad/issues/12800
This commit is contained in:
Jeff Young 2022-11-03 16:54:59 +00:00
parent 4ad0eeefc6
commit d8ddeea14a
1 changed files with 2 additions and 0 deletions

View File

@ -978,6 +978,7 @@ bool BOARD_NETLIST_UPDATER::UpdateNetlist( NETLIST& aNetlist )
{
msg.Printf( _( "Multiple footprints found for '%s'." ), component->GetReference() );
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_errorCount++;
doDelete = false;
}