From 0fcb7c377ba07c4cfcd369596020f53e3e1e0ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 1 Sep 2013 17:06:04 +0200 Subject: [PATCH] fixed RALint.exe System.Exception: Tried logging to non-existant channel debug --- OpenRA.FileFormats/Exts.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OpenRA.FileFormats/Exts.cs b/OpenRA.FileFormats/Exts.cs index 55071007d6..55523c95d9 100755 --- a/OpenRA.FileFormats/Exts.cs +++ b/OpenRA.FileFormats/Exts.cs @@ -201,12 +201,11 @@ namespace OpenRA d.Add(key, element); } - // If any duplicates were found, log it and throw a descriptive error + // If any duplicates were found, throw a descriptive error if (dupKeys.Count > 0) { var badKeysFormatted = string.Join(", ", dupKeys.Select(p => "{0}: [{1}]".F(logKey(p.Key), string.Join(",", p.Value.ToArray()))).ToArray()); var msg = "{0}, duplicate values found for the following keys: {1}".F(debugName, badKeysFormatted); - Log.Write("debug", msg); throw new ArgumentException(msg); }