From dc1b047257da642aa4afc12f3499b1d1e69faedf Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Wed, 5 Jun 2024 15:01:41 -0400 Subject: [PATCH] Use rmw_namespace_validation_result_string() in rmw_create_node (#196) Signed-off-by: Christophe Bedard Co-authored-by: Yadunund --- rmw_zenoh_cpp/src/rmw_zenoh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rmw_zenoh_cpp/src/rmw_zenoh.cpp b/rmw_zenoh_cpp/src/rmw_zenoh.cpp index 96173f39..87aebac8 100644 --- a/rmw_zenoh_cpp/src/rmw_zenoh.cpp +++ b/rmw_zenoh_cpp/src/rmw_zenoh.cpp @@ -217,7 +217,7 @@ 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; }