Skip to content

Commit f0211f8

Browse files
committed
Removing throw
1 parent 964ff2f commit f0211f8

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)