Skip to content

Commit

Permalink
Improve panic message
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Oct 13, 2022
1 parent fdd53a8 commit cc7936b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/fj-math/src/triangle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)
}
}

Expand Down

0 comments on commit cc7936b

Please sign in to comment.