Skip to content

Commit 80c7bb8

Browse files
committed
fix gripper incorrect side logging
1 parent 7bcaff1 commit 80c7bb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/body.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class Body {
9494
console.log('Robot body: gripper goal:', cmd);
9595

9696
if (!Object.prototype.hasOwnProperty.call(this.grippers, cmd.side)) {
97-
console.error('Gripper command side must be either left or right. Right now, it is', cmd.side);
97+
console.error(`Gripper command side must be one of [${Object.keys(this.grippers)}]. Right now, it is '${cmd.side}'`);
9898
return;
9999
}
100100

0 commit comments

Comments
 (0)