diff --git a/rclcpp/src/rclcpp/executor.cpp b/rclcpp/src/rclcpp/executor.cpp index a22abfa..3b4ae4d 100644 --- a/rclcpp/src/rclcpp/executor.cpp +++ b/rclcpp/src/rclcpp/executor.cpp @@ -333,7 +333,7 @@ Executor::execute_client( response.get()); if (status == RCL_RET_OK) { client->handle_response(request_header, response); - } else if (status != RCL_RET_SERVICE_TAKE_FAILED) { + } else if (status != RCL_RET_CLIENT_TAKE_FAILED) { fprintf(stderr, "[rclcpp::error] take response failed for client of service '%s': %s\n", client->get_service_name().c_str(), rcl_get_error_string_safe());