From cc7936b29b38033596c48a38f73b7963b704c677 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 13 Oct 2022 14:22:19 +0200 Subject: [PATCH] Improve panic message --- crates/fj-math/src/triangle.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/fj-math/src/triangle.rs b/crates/fj-math/src/triangle.rs index 78f9836f4..54504870e 100644 --- a/crates/fj-math/src/triangle.rs +++ b/crates/fj-math/src/triangle.rs @@ -69,7 +69,10 @@ impl Triangle<2> { return Winding::Ccw; } - unreachable!("not a triangle") + unreachable!( + "Points don't form a triangle, but this was verified in the \ + constructor." + ) } }