Remove unnecessary loading mod exceptions, log missing icon.png

This commit is contained in:
rob-v
2017-05-27 15:07:24 +02:00
committed by reaperrr
parent 04033e5c79
commit f75115a645
3 changed files with 30 additions and 18 deletions

View File

@@ -375,7 +375,10 @@ namespace OpenRA
ModData = null;
if (mod == null)
throw new InvalidOperationException("Game.Mod argument missing or mod could not be found.");
throw new InvalidOperationException("Game.Mod argument missing.");
if (!Mods.ContainsKey(mod))
throw new InvalidOperationException("Unknown or invalid mod '{0}'.".F(mod));
Console.WriteLine("Loading mod: {0}", mod);