Skip to content

Commit

Permalink
Add detail to the addJoint error message when joint already has a par…
Browse files Browse the repository at this point in the history
…ent.
  • Loading branch information
yoshavit committed Feb 5, 2014
1 parent e017dce commit 34187dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
child = model.body(child_ind);

if child.parent>0
error('there is already a joint connecting this child to a parent');
error(['there is already a joint connecting this child (' child.linkname ') to a parent (' model.body(parent_ind).linkname ') on joint ' name ]);
end

jointname = regexprep(name, '\.', '_', 'preservecase');
Expand Down

0 comments on commit 34187dd

Please sign in to comment.