From 9383b4e0a628fbfe16a29275ead0be9d58db1638 Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Thu, 13 Jun 2024 15:35:13 -0400 Subject: [PATCH] Make rmw_service_server_is_available return RMW_RET_INVALID_ARGUMENT (#763) Signed-off-by: Christophe Bedard --- .../src/rmw_service_server_is_available.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rmw_fastrtps_shared_cpp/src/rmw_service_server_is_available.cpp b/rmw_fastrtps_shared_cpp/src/rmw_service_server_is_available.cpp index 31987a116..3e52ec1a0 100644 --- a/rmw_fastrtps_shared_cpp/src/rmw_service_server_is_available.cpp +++ b/rmw_fastrtps_shared_cpp/src/rmw_service_server_is_available.cpp @@ -43,7 +43,7 @@ __rmw_service_server_is_available( { if (!node) { RMW_SET_ERROR_MSG("node handle is null"); - return RMW_RET_ERROR; + return RMW_RET_INVALID_ARGUMENT; } RMW_CHECK_TYPE_IDENTIFIERS_MATCH( @@ -53,7 +53,7 @@ __rmw_service_server_is_available( if (!client) { RMW_SET_ERROR_MSG("client handle is null"); - return RMW_RET_ERROR; + return RMW_RET_INVALID_ARGUMENT; } RMW_CHECK_TYPE_IDENTIFIERS_MATCH( @@ -63,7 +63,7 @@ __rmw_service_server_is_available( if (!is_available) { RMW_SET_ERROR_MSG("is_available is null"); - return RMW_RET_ERROR; + return RMW_RET_INVALID_ARGUMENT; } auto client_info = static_cast(client->data);