Merge pull request #921 from benelot/fix-linkstate-errormessage

pybullet: Error message wrong when linkIndex < 0 in getLinkState
This commit is contained in:
erwincoumans
2017-01-20 11:57:23 -08:00
committed by GitHub

View File

@@ -2054,7 +2054,7 @@ b3PhysicsClientHandle sm = 0;
return NULL; return NULL;
} }
if (linkIndex < 0) { if (linkIndex < 0) {
PyErr_SetString(SpamError, "getLinkState failed; invalid jointIndex"); PyErr_SetString(SpamError, "getLinkState failed; invalid linkIndex");
return NULL; return NULL;
} }