From e71135b51174d09e0015745d7bbcfad67a8648ec Mon Sep 17 00:00:00 2001 From: Scott_NZ Date: Fri, 8 Feb 2013 12:01:29 +1300 Subject: [PATCH] Better error messages when merging duplicate yaml --- OpenRA.FileFormats/MiniYaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.FileFormats/MiniYaml.cs b/OpenRA.FileFormats/MiniYaml.cs index 1962bcfbce..8af81d951a 100755 --- a/OpenRA.FileFormats/MiniYaml.cs +++ b/OpenRA.FileFormats/MiniYaml.cs @@ -200,8 +200,8 @@ namespace OpenRA.FileFormats var ret = new List(); - var aDict = a.ToDictionary( x => x.Key ); - var bDict = b.ToDictionary( x => x.Key ); + var aDict = a.ToDictionaryWithConflictLog(x => x.Key, "MiniYaml.Merge", null, x => "{0} (at {1})".F(x.Key, x.Location)); + var bDict = b.ToDictionaryWithConflictLog(x => x.Key, "MiniYaml.Merge", null, x => "{0} (at {1})".F(x.Key, x.Location)); var keys = aDict.Keys.Union( bDict.Keys ).ToList(); var noInherit = keys.Where(x => x.Length > 0 && x[0] == '-')