Skip to content

Commit

Permalink
Fix opennav_docking error_msg/code usage (#4341)
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Wake <[email protected]>
  • Loading branch information
aosmw committed Jun 27, 2024
1 parent 5a537d3 commit 54f0402
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions nav2_docking/opennav_docking/src/docking_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ void DockingServer::dockRobot()
} catch (opennav_docking_core::DockingException & e) {
result->error_msg = e.what();
RCLCPP_ERROR(get_logger(), result->error_msg.c_str());
result->error_code = DockRobot::Result::UNKNOWN;
} catch (std::exception & e) {
result->error_code = DockRobot::Result::UNKNOWN;
result->error_msg = e.what();
Expand Down
2 changes: 1 addition & 1 deletion nav2_docking/opennav_docking/test/test_docking_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def nav_execute_callback(self, goal_handle):

result = NavigateToPose.Result()
result.error_code = 0
result.error_msg = ""
result.error_msg = ''
return result

def test_docking_server(self):
Expand Down

0 comments on commit 54f0402

Please sign in to comment.