Check for the client error code, not server (#373)
This commit is contained in:
parent
b68b761462
commit
a8aa556df0
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@ Executor::execute_client(
|
|||
response.get());
|
||||
if (status == RCL_RET_OK) {
|
||||
client->handle_response(request_header, response);
|
||||
} else if (status != RCL_RET_SERVICE_TAKE_FAILED) {
|
||||
} else if (status != RCL_RET_CLIENT_TAKE_FAILED) {
|
||||
fprintf(stderr,
|
||||
"[rclcpp::error] take response failed for client of service '%s': %s\n",
|
||||
client->get_service_name().c_str(), rcl_get_error_string_safe());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue