From 95c0846ced587218d77682d6084355e4a5d19e86 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Thu, 13 Oct 2022 22:47:53 +0200 Subject: [PATCH] Remove the filename from the undefined MapFormat exception --- OpenRA.Game/Map/Map.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Map/Map.cs b/OpenRA.Game/Map/Map.cs index 06644b43dc..24be905584 100644 --- a/OpenRA.Game/Map/Map.cs +++ b/OpenRA.Game/Map/Map.cs @@ -302,7 +302,7 @@ namespace OpenRA return FieldLoader.GetValue("MapFormat", search.Groups[1].Value); } - throw new InvalidDataException($"MapFormat is not defined\n File: {p.Name}"); + throw new InvalidDataException("MapFormat is not defined"); } ///