fixed RALint.exe System.Exception:

Tried logging to non-existant channel debug
This commit is contained in:
Matthias Mailänder
2013-09-01 17:06:04 +02:00
parent d373cca9b1
commit 0fcb7c377b

View File

@@ -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);
}