From 657b443a436c66413a748770c318012f060a9ab5 Mon Sep 17 00:00:00 2001 From: "Tomoya.Fujita" Date: Thu, 4 Jun 2020 14:37:01 +0900 Subject: [PATCH] print RCL_LOCALHOST_ENV_VAR if error happens via rcutils_get_env. 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; }