Skip to content

Commit

Permalink
Log if mission definition has no deck
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Dec 18, 2024
1 parent 1739672 commit 6f87a7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/api/Controllers/MissionSchedulingController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
Expand Down

0 comments on commit 6f87a7a

Please sign in to comment.