Skip to content

Commit

Permalink
execute error callback of component on ERROR or exception
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Aug 28, 2024
1 parent f743bf4 commit 9fdcdce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hardware_interface/src/resource_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1804,6 +1804,7 @@ HardwareReadWriteStatus ResourceManager::read(
}
if (ret_val == return_type::ERROR)
{
component.error();
read_write_status.ok = false;
read_write_status.failed_hardware_names.push_back(component.get_name());
resource_storage_->remove_all_hardware_interfaces_from_available_list(component.get_name());
Expand Down Expand Up @@ -1864,6 +1865,7 @@ HardwareReadWriteStatus ResourceManager::write(
}
if (ret_val == return_type::ERROR)
{
component.error();
read_write_status.ok = false;
read_write_status.failed_hardware_names.push_back(component.get_name());
resource_storage_->remove_all_hardware_interfaces_from_available_list(component.get_name());
Expand Down

0 comments on commit 9fdcdce

Please sign in to comment.