Skip to content

Commit

Permalink
Merge pull request moveit#640 from 130s/impr/errormsg
Browse files Browse the repository at this point in the history
[move_group.cpp] Print the name of the move group action server that failed to be connected
  • Loading branch information
davetcoleman committed Feb 4, 2016
2 parents 750bce6 + 96b1a03 commit 7c53d2b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion planning_interface/move_group_interface/src/move_group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,14 @@ class MoveGroup::MoveGroupImpl
}

if (!action->isServerConnected())
throw std::runtime_error("Unable to connect to move_group action server within allotted time (2)");
{
std::string error = "Unable to connect to move_group action server '" + name + "' within allotted time (2)";
throw std::runtime_error(error);
}
else
{
ROS_DEBUG("Connected to '%s'", name.c_str());
}
}

~MoveGroupImpl()
Expand Down

0 comments on commit 7c53d2b

Please sign in to comment.