From 7fa805af1f4b750878aa0d94d9b846541292095c Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Thu, 13 Jun 2024 15:32:54 -0400 Subject: [PATCH] Use rmw_namespace_validation_result_string() in rmw_create_node (#497) Signed-off-by: Christophe Bedard --- rmw_cyclonedds_cpp/src/rmw_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rmw_cyclonedds_cpp/src/rmw_node.cpp b/rmw_cyclonedds_cpp/src/rmw_node.cpp index 65e3ae4d..3eb9b090 100644 --- a/rmw_cyclonedds_cpp/src/rmw_node.cpp +++ b/rmw_cyclonedds_cpp/src/rmw_node.cpp @@ -1698,7 +1698,7 @@ extern "C" rmw_node_t * rmw_create_node( return nullptr; } if (RMW_NAMESPACE_VALID != validation_result) { - const char * reason = rmw_node_name_validation_result_string(validation_result); + const char * reason = rmw_namespace_validation_result_string(validation_result); RMW_SET_ERROR_MSG_WITH_FORMAT_STRING("invalid node namespace: %s", reason); return nullptr; }