From 1cff651c441f10e8dfe2217f186ca31d114789f1 Mon Sep 17 00:00:00 2001 From: tomoya Date: Mon, 8 Jun 2020 21:57:45 +0900 Subject: [PATCH] print RCL_LOCALHOST_ENV_VAR if error happens via rcutils_get_env. (#672) Signed-off-by: Tomoya.Fujita --- rcl/src/rcl/localhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rcl/src/rcl/localhost.c b/rcl/src/rcl/localhost.c index 556a07b4a..6cc0e18aa 100644 --- a/rcl/src/rcl/localhost.c +++ b/rcl/src/rcl/localhost.c @@ -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; }