From 3e77f48b06089d11c72ad9421ad742467642b07f Mon Sep 17 00:00:00 2001 From: RoosterDragon Date: Tue, 29 Dec 2015 20:12:05 +0000 Subject: [PATCH] Rethrow exception correctly in CoordinateTest. --- OpenRA.Test/OpenRA.Game/CoordinateTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Test/OpenRA.Game/CoordinateTest.cs b/OpenRA.Test/OpenRA.Game/CoordinateTest.cs index 77cc56e84f..c89a75fcab 100644 --- a/OpenRA.Test/OpenRA.Game/CoordinateTest.cs +++ b/OpenRA.Test/OpenRA.Game/CoordinateTest.cs @@ -31,14 +31,14 @@ namespace OpenRA.Test { Assert.That(cell, Is.EqualTo(cell.ToMPos(gridType).ToCPos(gridType))); } - catch (Exception e) + catch { // Known problem on isometric mods that shouldn't be visible to players as these are outside the map. if (gridType == MapGridType.RectangularIsometric && y > x) continue; Console.WriteLine("Coordinate {0} on grid type {1} failed to convert back.".F(cell, gridType)); - throw e; + throw; } } }