From 3172a5a7351e277d04cf7def7f63205d6103a8ac Mon Sep 17 00:00:00 2001 From: John Beard Date: Mon, 19 May 2025 23:45:21 +0800 Subject: [PATCH] BOARD: add a bit more detail to some debug --- pcbnew/board.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/board.cpp b/pcbnew/board.cpp index 5459157052..54a0a3d125 100644 --- a/pcbnew/board.cpp +++ b/pcbnew/board.cpp @@ -1109,7 +1109,9 @@ void BOARD::Add( BOARD_ITEM* aBoardItem, ADD_MODE aMode, bool aSkipConnectivity // N.B. This inserts a small memory leak as we lose the if( !IsCopperLayer( aBoardItem->GetLayer() ) ) { - wxFAIL_MSG( wxT( "BOARD::Add() Cannot place Track on non-copper layer" ) ); + wxFAIL_MSG( wxString::Format( "BOARD::Add() Cannot place Track on non-copper layer: %d = %s", + static_cast( aBoardItem->GetLayer() ), + GetLayerName( aBoardItem->GetLayer() ) ) ); return; } @@ -3117,5 +3119,3 @@ bool BOARD::operator==( const BOARD_ITEM& aItem ) const return true; } - -