From a61a014a11a612e55f3fe3fd77fcd4e027d98e90 Mon Sep 17 00:00:00 2001 From: evshary Date: Tue, 24 Sep 2019 13:47:34 +0800 Subject: [PATCH] Return NODE_NAME_NON_EXISTENT instead of ERROR. Signed-off-by: evshary --- rmw_cyclonedds_cpp/src/rmw_node.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rmw_cyclonedds_cpp/src/rmw_node.cpp b/rmw_cyclonedds_cpp/src/rmw_node.cpp index 91b1e3f..6e75879 100755 --- a/rmw_cyclonedds_cpp/src/rmw_node.cpp +++ b/rmw_cyclonedds_cpp/src/rmw_node.cpp @@ -2442,9 +2442,9 @@ static rmw_ret_t get_node_guids( if (ret != RMW_RET_OK) { return ret; } else if (guids.size() == 0) { - /* It appears the get_..._by_node operations are supposed to return ERROR if no such node - exists */ - return RMW_RET_ERROR; + /* It appears the get_..._by_node operations are supposed to return NODE_NAME_NON_EXISTENT + if no such node exists */ + return RMW_RET_NODE_NAME_NON_EXISTENT; } else { return RMW_RET_OK; }