Skip to content

Commit

Permalink
Stop logging error. Set better error message
Browse files Browse the repository at this point in the history
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
  • Loading branch information
ivanpauno committed Aug 30, 2019
1 parent c58e3ac commit 9744a6d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions rmw_fastrtps_shared_cpp/src/rmw_node_info_and_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,8 @@ rmw_ret_t __get_guid_by_name(
});

if (guid_node_pair == impl->listener->discovered_names.end()) {
RCUTILS_LOG_ERROR_NAMED(
kLoggerTag,
"Unable to find GUID for node: %s", node_name);
RMW_SET_ERROR_MSG("Unable to find GUID for node ");
return RMW_RET_NON_EXISTENT_NODE_NAME;
RMW_SET_ERROR_MSG("Node name not found: ns='%s', name='%s", node_namespace, node_name);
return RMW_RET_NODE_NAME_NON_EXISTENT;
}
guid = guid_node_pair->first;
}
Expand Down

0 comments on commit 9744a6d

Please sign in to comment.