Return NODE_NAME_NON_EXISTENT instead of ERROR.
Signed-off-by: evshary <evshary@gmail.com>
This commit is contained in:
parent
af5fa3c468
commit
a61a014a11
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue