Skip to content

Commit

Permalink
Make sure to set error messages on network_flow_endpoints APIs.
Browse files Browse the repository at this point in the history
That is how the other RMWs do it, and it is what rcl expects.

Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette committed Dec 23, 2024
1 parent cebb972 commit c2ab748
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rmw_zenoh_cpp/src/rmw_get_network_flow_endpoints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "rcutils/allocator.h"

#include "rmw/error_handling.h"
#include "rmw/get_network_flow_endpoints.h"
#include "rmw/types.h"

Expand All @@ -30,6 +31,7 @@ rmw_publisher_get_network_flow_endpoints(
(void) publisher;
(void) allocator;
(void) network_flow_endpoint_array;
RMW_SET_ERROR_MSG("rmw_publisher_get_network_flow_endpoints not implemented");
return RMW_RET_UNSUPPORTED;
}

Expand All @@ -44,6 +46,7 @@ rmw_subscription_get_network_flow_endpoints(
(void) subscription;
(void) allocator;
(void) network_flow_endpoint_array;
RMW_SET_ERROR_MSG("rmw_subscription_get_network_flow_endpoints not implemented");
return RMW_RET_UNSUPPORTED;
}
} // extern "C"

0 comments on commit c2ab748

Please sign in to comment.