Skip to content

Commit

Permalink
Change misleading error to a clearer message (#373)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandre Chataignon <alexandre.chataignon@robocc.com>
  • Loading branch information
xouillet and xouillet authored Aug 21, 2023
1 parent 032f69e commit c3b7372
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions depthai_ros_driver/src/camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ void Camera::startDevice() {
throw std::runtime_error("Device is already booted in different process.");
}
} else {
RCLCPP_INFO(this->get_logger(), "Device info: MXID: %s, Name: %s", info.getMxId().c_str(), info.name.c_str());
throw std::runtime_error("Unable to connect to the device, check if parameters match with given info.");
RCLCPP_INFO(this->get_logger(), "Ignoring device info: MXID: %s, Name: %s", info.getMxId().c_str(), info.name.c_str());
}
}
}
Expand Down

0 comments on commit c3b7372

Please sign in to comment.