From 5faf966459b29eb6ea0b0e98e7b35f8a93b8a049 Mon Sep 17 00:00:00 2001 From: dhood Date: Wed, 6 Dec 2017 13:17:30 -0800 Subject: [PATCH] Explain error getting RMW impl id was because not installed (#201) * Explain error getting RMW impl id was because not installed * just spaces around the / to make it easier to "parse" --- rcl/src/rcl/rmw_implementation_identifier_check.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/rcl/src/rcl/rmw_implementation_identifier_check.c b/rcl/src/rcl/rmw_implementation_identifier_check.c index aee97fb..d1f7f12 100644 --- a/rcl/src/rcl/rmw_implementation_identifier_check.c +++ b/rcl/src/rcl/rmw_implementation_identifier_check.c @@ -63,7 +63,7 @@ INITIALIZER(initialize) { if (ret != RCL_RET_OK) { RCUTILS_LOG_ERROR_NAMED( ROS_PACKAGE_NAME, - "Error getting environement variable 'RMW_IMPLEMENTATION': %s", + "Error getting environment variable 'RMW_IMPLEMENTATION': %s", rcl_get_error_string_safe() ) exit(ret); @@ -83,7 +83,7 @@ INITIALIZER(initialize) { if (ret != RCL_RET_OK) { RCUTILS_LOG_ERROR_NAMED( ROS_PACKAGE_NAME, - "Error getting environement variable 'RCL_ASSERT_RMW_ID_MATCHES': %s", + "Error getting environment variable 'RCL_ASSERT_RMW_ID_MATCHES': %s", rcl_get_error_string_safe() ) exit(ret); @@ -128,7 +128,10 @@ INITIALIZER(initialize) { if (!actual_rmw_impl_id) { RCUTILS_LOG_ERROR_NAMED( ROS_PACKAGE_NAME, - "Error getting RMW implementation identifier." + "Error getting RMW implementation identifier / RMW implementation not installed " + "(expected identifier of '%s'), exiting with %d.", + expected_rmw_impl, + RCL_RET_ERROR ) exit(RCL_RET_ERROR); }