Commits

John Hsu committed af2e051

better error message when loading repeated joint names.

  • Participants
  • Parent commits 10f23e1
  • Branches ode_gearbox

Comments (0)

Files changed (1)

File gazebo/physics/Model.cc

   joint->Load(_sdf);
 
   if (this->GetJoint(joint->GetScopedName()) != NULL)
-    gzthrow("can't have two joint with the same name");
+    gzthrow("can't have two joint with the same name ["+
+      joint->GetScopedName() + "]\n");
 
   msgs::Joint msg;
   joint->FillMsg(msg);