Skip to content

Commit

Permalink
Log an error if update() call returns ERROR (#1969)
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich authored Dec 23, 2024
1 parent 4c58cda commit 5bbc0ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controller_manager/src/controller_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 5bbc0ad

Please sign in to comment.