Skip to content

Commit

Permalink
Use rmw_namespace_validation_result_string() in rmw_create_node (#497)
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Bedard <[email protected]>
  • Loading branch information
christophebedard authored Jun 13, 2024
1 parent 80e0996 commit 7fa805a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmw_cyclonedds_cpp/src/rmw_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7fa805a

Please sign in to comment.