Skip to content

Commit b6e7f33

Browse files
committed
better error message
1 parent 0225524 commit b6e7f33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spatialmath/base/transformsNd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def rt2tr(R, t, check=False):
295295
T[:3, :3] = R
296296
T[:3, 3] = t
297297
else:
298-
raise ValueError("R must be an SO2 or SO3 rotation matrix")
298+
raise ValueError(f"R must be an SO(2) or SO(3) rotation matrix, not {R.shape}")
299299

300300
return T
301301

0 commit comments

Comments
 (0)