From 807eef1208a8000a2f1286c6e781056508173fc5 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 12 Dec 2020 12:22:52 +0000 Subject: [PATCH] Better error reporting to try and catch 6635. --- libs/kimath/src/geometry/shape_collisions.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libs/kimath/src/geometry/shape_collisions.cpp b/libs/kimath/src/geometry/shape_collisions.cpp index 3cac31016e..1341db01be 100644 --- a/libs/kimath/src/geometry/shape_collisions.cpp +++ b/libs/kimath/src/geometry/shape_collisions.cpp @@ -689,10 +689,9 @@ static bool collideSingleShapes( const SHAPE* aA, const SHAPE* aB, int aClearanc break; } - bool unsupported_collision = true; - (void) unsupported_collision; // make gcc quiet - - wxASSERT( unsupported_collision == false ); + wxFAIL_MSG( wxString::Format( "Unsupported collision: %s with %s", + SHAPE_TYPE_asString( aA->Type() ), + SHAPE_TYPE_asString( aB->Type() ) ) ); return false; }