From b0036a2d3e805591be100090a500d06ec2b145cd Mon Sep 17 00:00:00 2001 From: Gustas <37534529+PunkPun@users.noreply.github.com> Date: Fri, 2 Dec 2022 14:17:17 +0200 Subject: [PATCH] Add cell reference HPF crash messages --- OpenRA.Mods.Common/Pathfinder/HierarchicalPathFinder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Pathfinder/HierarchicalPathFinder.cs b/OpenRA.Mods.Common/Pathfinder/HierarchicalPathFinder.cs index 44915832c1..f16a839603 100644 --- a/OpenRA.Mods.Common/Pathfinder/HierarchicalPathFinder.cs +++ b/OpenRA.Mods.Common/Pathfinder/HierarchicalPathFinder.cs @@ -1132,7 +1132,7 @@ namespace OpenRA.Mods.Common.Pathfinder if (maybeAbstractCell == null) throw new Exception( "The abstract path should never be searched for an unreachable point. " + - "This is a bug. Failed lookup for an abstract cell."); + $"Cell {cell} failed lookup for an abstract cell."); } var abstractCell = maybeAbstractCell.Value; @@ -1145,7 +1145,7 @@ namespace OpenRA.Mods.Common.Pathfinder if (!abstractSearch.ExpandToTarget()) throw new Exception( "The abstract path should never be searched for an unreachable point. " + - "This is a bug. Failed to route to abstract cell."); + $"Abstract cell {abstractCell} failed to route to abstract cell."); info = graph[abstractCell]; }