diff --git a/include/class_board_item.h b/include/class_board_item.h index 6c7ba23e72..41330670da 100644 --- a/include/class_board_item.h +++ b/include/class_board_item.h @@ -233,7 +233,8 @@ public: */ virtual void Move( const wxPoint& aMoveVector ) { - wxMessageBox( wxT( "virtual BOARD_ITEM::Move used, should not occur" ), GetClass() ); + wxFAIL_MSG( wxString::Format( wxT( "virtual BOARD_ITEM::Move called for %s" ), + GetClass() ) ); } void Move( const VECTOR2I& aMoveVector )