From 44fa5312f08cd7d164b2e781e6baaa05cc9402ed Mon Sep 17 00:00:00 2001 From: Eddasol Date: Mon, 7 Oct 2024 15:49:42 +0200 Subject: [PATCH] Rewrite misleading error message --- src/isar/services/utilities/scheduling_utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/isar/services/utilities/scheduling_utilities.py b/src/isar/services/utilities/scheduling_utilities.py index 53d9dce2..9041c924 100644 --- a/src/isar/services/utilities/scheduling_utilities.py +++ b/src/isar/services/utilities/scheduling_utilities.py @@ -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)