From 9500c91a69ffdae06f92b80709c5ebf007519d7d Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Thu, 27 May 2021 12:39:34 +0200 Subject: [PATCH] Proper exception rethrowing in AI Steering system. --- .../GameObjects/EntitySystems/AI/Steering/AiSteeringSystem.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Content.Server/GameObjects/EntitySystems/AI/Steering/AiSteeringSystem.cs b/Content.Server/GameObjects/EntitySystems/AI/Steering/AiSteeringSystem.cs index a2b04dda14..490bd280ca 100644 --- a/Content.Server/GameObjects/EntitySystems/AI/Steering/AiSteeringSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/AI/Steering/AiSteeringSystem.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using Content.Server.GameObjects.Components.Access; @@ -151,6 +152,7 @@ namespace Content.Server.GameObjects.EntitySystems.AI.Steering case null: break; default: + ExceptionDispatchInfo.Capture(request.Job.Exception).Throw(); throw request.Job.Exception; } _pathfindingRequests.Remove(entity);