diff --git a/common/component_interface_utils/include/component_interface_utils/rclcpp/exceptions.hpp b/common/component_interface_utils/include/component_interface_utils/rclcpp/exceptions.hpp index a10b7d75602e6..e0a6064875d91 100644 --- a/common/component_interface_utils/include/component_interface_utils/rclcpp/exceptions.hpp +++ b/common/component_interface_utils/include/component_interface_utils/rclcpp/exceptions.hpp @@ -39,7 +39,7 @@ class ServiceException : public std::exception template void set(T & status) const { - status.success = false; + status.success = success_; status.code = code_; status.message = message_; } @@ -47,7 +47,7 @@ class ServiceException : public std::exception ResponseStatus status() const { ResponseStatus status; - status.success = false; + status.success = success_; status.code = code_; status.message = message_; return status;