From 5bbc0adfaae9658afff65dfdb67926e7ea5910c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Fr=C3=B6hlich?= Date: Mon, 23 Dec 2024 16:27:45 +0100 Subject: [PATCH] Log an error if update() call returns `ERROR` (#1969) --- controller_manager/src/controller_manager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controller_manager/src/controller_manager.cpp b/controller_manager/src/controller_manager.cpp index 29b8ac2e54..700456aac8 100644 --- a/controller_manager/src/controller_manager.cpp +++ b/controller_manager/src/controller_manager.cpp @@ -2122,6 +2122,9 @@ controller_interface::return_type ControllerManager::update( if (controller_ret != controller_interface::return_type::OK) { + RCLCPP_ERROR( + get_logger(), "The update call of the following controller returned an error: '%s'", + loaded_controller.info.name.c_str()); ret = controller_ret; } }