Skip to content

Commit

Permalink
Fix logging in device_container.cpp (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellantos authored Apr 18, 2024
1 parent 53995d9 commit 93ebb7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions canopen_core/src/device_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,24 +136,24 @@ void DeviceContainer::configure()
{
if (!this->get_parameter("can_interface_name", can_interface_name_))
{
throw DeviceContainerException("Fatal: Getting Parameter failed.");
RCLCPP_ERROR(this->get_logger(), "Parameter can_interface_name could not be read.");
throw DeviceContainerException("Fatal: Getting Parameter failed.");
}
if (!this->get_parameter("master_config", dcf_txt_))
{
throw DeviceContainerException("Fatal: Getting Parameter failed.");
RCLCPP_ERROR(this->get_logger(), "Parameter master_config could not be read.");
throw DeviceContainerException("Fatal: Getting Parameter failed.");
}
if (!this->get_parameter("master_bin", dcf_bin_))
{
throw DeviceContainerException("Fatal: Getting Parameter failed.");
RCLCPP_ERROR(this->get_logger(), "Parameter master_bin could not be read.");
throw DeviceContainerException("Fatal: Getting Parameter failed.");
}

if (!this->get_parameter("bus_config", bus_config_))
{
throw DeviceContainerException("Fatal: Getting Parameter failed.");
RCLCPP_ERROR(this->get_logger(), "Parameter bus_config could not be read.");
throw DeviceContainerException("Fatal: Getting Parameter failed.");
}

if (can_interface_name_.length() == 0)
Expand Down

0 comments on commit 93ebb7d

Please sign in to comment.