Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rcljava/src/main/cpp/org_ros2_rcljava_client_ClientImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Java_org_ros2_rcljava_client_ClientImpl_nativeSendClientRequest(

if (ret != RCL_RET_OK) {
std::string msg =
"Failed to send request from a client: " + std::string(rcl_get_error_string_safe());
"Failed to send request from a client: " + std::string(rcl_get_error_string());
rcl_reset_error();
rcljava_throw_rclexception(env, ret, msg);
}
Expand Down Expand Up @@ -91,7 +91,7 @@ Java_org_ros2_rcljava_client_ClientImpl_nativeDispose(
rcl_ret_t ret = rcl_client_fini(client, node);

if (ret != RCL_RET_OK) {
std::string msg = "Failed to destroy client: " + std::string(rcl_get_error_string_safe());
std::string msg = "Failed to destroy client: " + std::string(rcl_get_error_string());
rcl_reset_error();
rcljava_throw_rclexception(env, ret, msg);
}
Expand Down