Return NODE_NAME_NON_EXISTENT instead of ERROR.

Signed-off-by: evshary <evshary@gmail.com>
This commit is contained in:
evshary 2019-09-24 13:47:34 +08:00 committed by eboasson
parent af5fa3c468
commit a61a014a11

View file

@ -2442,9 +2442,9 @@ static rmw_ret_t get_node_guids(
if (ret != RMW_RET_OK) { if (ret != RMW_RET_OK) {
return ret; return ret;
} else if (guids.size() == 0) { } else if (guids.size() == 0) {
/* It appears the get_..._by_node operations are supposed to return ERROR if no such node /* It appears the get_..._by_node operations are supposed to return NODE_NAME_NON_EXISTENT
exists */ if no such node exists */
return RMW_RET_ERROR; return RMW_RET_NODE_NAME_NON_EXISTENT;
} else { } else {
return RMW_RET_OK; return RMW_RET_OK;
} }