From 265f5653b8c21a1f13224221a8bb8a9fd502d524 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 4 Aug 2019 16:16:11 +0400 Subject: [PATCH] added throwing parameter name if parameter is not set Signed-off-by: Alex --- rclcpp/include/rclcpp/parameter_client.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rclcpp/include/rclcpp/parameter_client.hpp b/rclcpp/include/rclcpp/parameter_client.hpp index 77ae4d231e..b8a2530277 100644 --- a/rclcpp/include/rclcpp/parameter_client.hpp +++ b/rclcpp/include/rclcpp/parameter_client.hpp @@ -271,7 +271,7 @@ class SyncParametersClient { return get_parameter_impl( parameter_name, - std::function([]() -> T {throw std::runtime_error("Parameter not set");})); + std::function([]() -> T {throw std::runtime_error("Parameter '" + parameter_name + "' is not set");})); } RCLCPP_PUBLIC