Better error messages for router.

This commit is contained in:
Jeff Young 2019-10-01 15:02:41 +01:00
parent b58df5e777
commit 9a349065db
1 changed files with 2 additions and 2 deletions

View File

@ -550,13 +550,13 @@ int ROUTER_TOOL::onViaCommand( const TOOL_EVENT& aEvent )
// Cannot place microvias or blind vias if not allowed (obvious) // Cannot place microvias or blind vias if not allowed (obvious)
if( ( viaType == VIA_BLIND_BURIED ) && ( !bds.m_BlindBuriedViaAllowed ) ) if( ( viaType == VIA_BLIND_BURIED ) && ( !bds.m_BlindBuriedViaAllowed ) )
{ {
DisplayError( frame(), _( "Blind/buried vias have to be enabled in the design settings." ) ); DisplayError( frame(), _( "Blind/buried vias have to be enabled in Board Setup > Design Rules > Constraints." ) );
return false; return false;
} }
if( ( viaType == VIA_MICROVIA ) && ( !bds.m_MicroViasAllowed ) ) if( ( viaType == VIA_MICROVIA ) && ( !bds.m_MicroViasAllowed ) )
{ {
DisplayError( frame(), _( "Microvias have to be enabled in the design settings." ) ); DisplayError( frame(), _( "Microvias have to be enabled in Board Setup > Design Rules > Constraints." ) );
return false; return false;
} }