Skip to content

Commit

Permalink
added throwing parameter name if parameter is not set
Browse files Browse the repository at this point in the history
Signed-off-by: Alex <cvbn127@gmail.com>
  • Loading branch information
cvbn127 authored and ivanpauno committed Sep 6, 2019
1 parent 458967b commit 265f565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclcpp/include/rclcpp/parameter_client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ class SyncParametersClient
{
return get_parameter_impl(
parameter_name,
std::function<T()>([]() -> T {throw std::runtime_error("Parameter not set");}));
std::function<T()>([]() -> T {throw std::runtime_error("Parameter '" + parameter_name + "' is not set");}));
}

RCLCPP_PUBLIC
Expand Down

0 comments on commit 265f565

Please sign in to comment.