Log rule errors when loading from MapPreview.

This commit is contained in:
Paul Chote
2016-03-19 14:27:14 +00:00
parent 7f30f172a1
commit c696c318c4

View File

@@ -226,8 +226,9 @@ namespace OpenRA
return Ruleset.Load(modData, this, TileSet, ruleDefinitions, weaponDefinitions,
voiceDefinitions, notificationDefinitions, musicDefinitions, sequenceDefinitions);
}
catch
catch (Exception e)
{
Log.Write("debug", "Failed to load rules for `{0}` with error :{1}", Title, e.Message);
InvalidCustomRules = true;
return Ruleset.LoadDefaultsForTileSet(modData, TileSet);
}