Log rule errors when loading from MapPreview.
This commit is contained in:
@@ -226,8 +226,9 @@ namespace OpenRA
|
|||||||
return Ruleset.Load(modData, this, TileSet, ruleDefinitions, weaponDefinitions,
|
return Ruleset.Load(modData, this, TileSet, ruleDefinitions, weaponDefinitions,
|
||||||
voiceDefinitions, notificationDefinitions, musicDefinitions, sequenceDefinitions);
|
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;
|
InvalidCustomRules = true;
|
||||||
return Ruleset.LoadDefaultsForTileSet(modData, TileSet);
|
return Ruleset.LoadDefaultsForTileSet(modData, TileSet);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user