Skip to content

Commit ee2d778

Browse files
authored
Eexception rethrow in dockRobot method (#5364)
Signed-off-by: Alberto Tudela <[email protected]>
1 parent 779b095 commit ee2d778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nav2_docking/opennav_docking/src/docking_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ void DockingServer::dockRobot()
341341
} catch (opennav_docking_core::DockingException & e) {
342342
if (++num_retries_ > max_retries_) {
343343
RCLCPP_ERROR(get_logger(), "Failed to dock, all retries have been used");
344-
throw e;
344+
throw;
345345
}
346346
RCLCPP_WARN(get_logger(), "Docking failed, will retry: %s", e.what());
347347
}

0 commit comments

Comments
 (0)