From 10d32bb1d66d85eaf3dd385bd3d1eec4dd3620e0 Mon Sep 17 00:00:00 2001 From: John Beard Date: Sun, 2 Jul 2023 18:50:57 +0100 Subject: [PATCH] Explain wxASSERT in COMMIT::Stage --- common/commit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/commit.cpp b/common/commit.cpp index 77bd7b8ff6..423f77278e 100644 --- a/common/commit.cpp +++ b/common/commit.cpp @@ -55,7 +55,8 @@ COMMIT& COMMIT::Stage( EDA_ITEM* aItem, CHANGE_TYPE aChangeType, BASE_SCREEN* aS switch( aChangeType & CHT_TYPE ) { case CHT_ADD: - wxASSERT( m_changedItems.find( aItem ) == m_changedItems.end() ); + wxASSERT_MSG( m_changedItems.find( aItem ) == m_changedItems.end(), + wxT( "Item already staged for commit" ) ); makeEntry( aItem, CHT_ADD | flag, nullptr, aScreen ); return *this;