From c2ab7487df2ac992f170ca5771bdb969c9b7baf0 Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Mon, 23 Dec 2024 18:21:29 +0000 Subject: [PATCH] Make sure to set error messages on network_flow_endpoints APIs. That is how the other RMWs do it, and it is what rcl expects. Signed-off-by: Chris Lalancette --- rmw_zenoh_cpp/src/rmw_get_network_flow_endpoints.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rmw_zenoh_cpp/src/rmw_get_network_flow_endpoints.cpp b/rmw_zenoh_cpp/src/rmw_get_network_flow_endpoints.cpp index 64006c10..2547c042 100644 --- a/rmw_zenoh_cpp/src/rmw_get_network_flow_endpoints.cpp +++ b/rmw_zenoh_cpp/src/rmw_get_network_flow_endpoints.cpp @@ -14,6 +14,7 @@ #include "rcutils/allocator.h" +#include "rmw/error_handling.h" #include "rmw/get_network_flow_endpoints.h" #include "rmw/types.h" @@ -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; } @@ -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"