Skip to content

Commit d701cc8

Browse files
Merge pull request BehaviorTree#39 from Oscar-Robotics/humble
Return failure on action rejection
2 parents 964ff2f + f0211f8 commit d701cc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

behaviortree_ros2/include/behaviortree_ros2/bt_action_node.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ template<class T> inline
386386
future_goal_handle_ = {};
387387

388388
if (!goal_handle_) {
389-
throw std::runtime_error("Goal was rejected by the action server");
389+
return CheckStatus( onFailure( GOAL_REJECTED_BY_SERVER ) );
390390
}
391391
}
392392
}

0 commit comments

Comments
 (0)