Skip to content

Commit

Permalink
Make rmw_service_server_is_available return RMW_RET_INVALID_ARGUMENT (#…
Browse files Browse the repository at this point in the history
…763)

Signed-off-by: Christophe Bedard <[email protected]>
  • Loading branch information
christophebedard authored Jun 13, 2024
1 parent d63a7b2 commit 9383b4e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand All @@ -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<CustomClientInfo *>(client->data);
Expand Down

0 comments on commit 9383b4e

Please sign in to comment.