Skip to content

Commit

Permalink
print RCL_LOCALHOST_ENV_VAR if error happens via rcutils_get_env. (#672)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
  • Loading branch information
fujitatomoya committed Jun 8, 2020
1 parent 2be7dc8 commit 1cff651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rcl/src/rcl/localhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ rcl_get_localhost_only(rmw_localhost_only_t * localhost_only)
get_env_error_str = rcutils_get_env(RCL_LOCALHOST_ENV_VAR, &ros_local_host_env_val);
if (NULL != get_env_error_str) {
RCL_SET_ERROR_MSG_WITH_FORMAT_STRING(
"Error getting env var '" RCUTILS_STRINGIFY(RCL_DOMAIN_ID_ENV_VAR) "': %s\n",
"Error getting env var '" RCUTILS_STRINGIFY(RCL_LOCALHOST_ENV_VAR) "': %s\n",
get_env_error_str);
return RCL_RET_ERROR;
}
Expand Down

0 comments on commit 1cff651

Please sign in to comment.