Skip to content

Commit

Permalink
Rewrite misleading error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddasol committed Oct 15, 2024
1 parent d8ed8c0 commit 44fa531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/isar/services/utilities/scheduling_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def verify_state_machine_ready_to_receive_mission(self, state: States) -> bool:
"""
is_state_machine_ready_to_receive_mission = state == States.Idle
if not is_state_machine_ready_to_receive_mission:
error_message = f"Conflict - Mission already in progress - State: {state}"
error_message = f"Conflict - Robot is not idle - State: {state}"
self.logger.warning(error_message)
raise HTTPException(status_code=HTTPStatus.CONFLICT, detail=error_message)

Expand Down

0 comments on commit 44fa531

Please sign in to comment.