Skip to content

Commit aacc375

Browse files
committed
Facing: improved error message for rotate()
1 parent 9504957 commit aacc375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Facing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public static function rotate(int $direction, int $axis, bool $clockwise) : int{
110110
throw new \InvalidArgumentException("Invalid axis $axis");
111111
}
112112
if(!isset(self::CLOCKWISE[$axis][$direction])){
113-
throw new \InvalidArgumentException("Cannot rotate direction $direction around axis $axis");
113+
throw new \InvalidArgumentException("Cannot rotate facing \"" . self::toString($direction) . "\" around axis \"" . Axis::toString($axis) . "\"");
114114
}
115115

116116
$rotated = self::CLOCKWISE[$axis][$direction];

0 commit comments

Comments
 (0)