Skip to content

Commit

Permalink
Better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryLoenwind committed Sep 16, 2024
1 parent a5020e0 commit 61d9d6b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public GlobalVec3 copy() {

protected void sameDim(Vec3 other) {
if (other instanceof GlobalVec3 other3 && other3.dimension != dimension) {
throw new IllegalStateException("Cannot compute with GlobalPoses that are in different dimensions");
throw new IllegalStateException("Cannot compute with GlobalPoses (" + this + " and " + other + ") that are in different dimensions");
}
}

Expand Down

0 comments on commit 61d9d6b

Please sign in to comment.