Return correct error when rcl_take_request fails
This commit is contained in:
parent
77b034840b
commit
7661ab2202
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ rcl_take_request(
|
||||||
}
|
}
|
||||||
if (!taken) {
|
if (!taken) {
|
||||||
RCL_SET_ERROR_MSG(rmw_get_error_string_safe());
|
RCL_SET_ERROR_MSG(rmw_get_error_string_safe());
|
||||||
return RCL_RET_CLIENT_TAKE_FAILED;
|
return RCL_RET_SERVICE_TAKE_FAILED;
|
||||||
}
|
}
|
||||||
return RCL_RET_OK;
|
return RCL_RET_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue