Skip to content

Commit 9383b4e

Browse files
Make rmw_service_server_is_available return RMW_RET_INVALID_ARGUMENT (#763)
Signed-off-by: Christophe Bedard <[email protected]>
1 parent d63a7b2 commit 9383b4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rmw_fastrtps_shared_cpp/src/rmw_service_server_is_available.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ __rmw_service_server_is_available(
4343
{
4444
if (!node) {
4545
RMW_SET_ERROR_MSG("node handle is null");
46-
return RMW_RET_ERROR;
46+
return RMW_RET_INVALID_ARGUMENT;
4747
}
4848

4949
RMW_CHECK_TYPE_IDENTIFIERS_MATCH(
@@ -53,7 +53,7 @@ __rmw_service_server_is_available(
5353

5454
if (!client) {
5555
RMW_SET_ERROR_MSG("client handle is null");
56-
return RMW_RET_ERROR;
56+
return RMW_RET_INVALID_ARGUMENT;
5757
}
5858

5959
RMW_CHECK_TYPE_IDENTIFIERS_MATCH(
@@ -63,7 +63,7 @@ __rmw_service_server_is_available(
6363

6464
if (!is_available) {
6565
RMW_SET_ERROR_MSG("is_available is null");
66-
return RMW_RET_ERROR;
66+
return RMW_RET_INVALID_ARGUMENT;
6767
}
6868

6969
auto client_info = static_cast<CustomClientInfo *>(client->data);

0 commit comments

Comments
 (0)