diff --git a/mavros_extras/src/plugins/gimbal_control.cpp b/mavros_extras/src/plugins/gimbal_control.cpp index d56acab89..3f6c9ca85 100644 --- a/mavros_extras/src/plugins/gimbal_control.cpp +++ b/mavros_extras/src/plugins/gimbal_control.cpp @@ -249,10 +249,9 @@ class GimbalControlPlugin : public plugin::Plugin RCLCPP_ERROR(node->get_logger(), "GimbalControl: mavros/cmd/command service not available after waiting"); cmd_cli.reset(); - throw std::logic_error("client not connected") + throw std::logic_error("client not connected"); } - return cmd_cli; }