Check for the client error code, not server (#373)

This commit is contained in:
dhood 2017-09-12 08:59:13 -07:00 committed by GitHub
parent b68b761462
commit a8aa556df0

View file

@ -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());