From 95b93478051ddcecf4fbf7c8fc03c43908c489f4 Mon Sep 17 00:00:00 2001 From: andchiind Date: Wed, 18 Dec 2024 10:07:29 +0100 Subject: [PATCH] Log if mission definition has no deck --- backend/api/Controllers/MissionSchedulingController.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/api/Controllers/MissionSchedulingController.cs b/backend/api/Controllers/MissionSchedulingController.cs index 1406720d..24bd1e86 100644 --- a/backend/api/Controllers/MissionSchedulingController.cs +++ b/backend/api/Controllers/MissionSchedulingController.cs @@ -129,6 +129,10 @@ [FromBody] ScheduleMissionQuery scheduledMissionQuery { return NotFound("Mission definition not found"); } + else if (missionDefinition.InspectionArea == null) + { + logger.LogWarning("Mission definition with ID {id} does not have an inspection area when scheduling", missionDefinition.Id); + } try { await localizationService.EnsureRobotIsOnSameInstallationAsMission(robot, missionDefinition); } catch (InstallationNotFoundException e) { return NotFound(e.Message); }