IRulesetLoaded Warhead support and better error messages.

This commit is contained in:
atlimit8
2015-09-26 11:12:39 -05:00
parent 22183fd5c7
commit 079cff0a7a
6 changed files with 45 additions and 6 deletions

View File

@@ -46,7 +46,7 @@ namespace OpenRA
public static Func<string, Type, string, object> InvalidValueAction = (s, t, f) =>
{
throw new InvalidOperationException("FieldLoader: Cannot parse `{0}` into `{1}.{2}` ".F(s, f, t));
throw new YamlException("FieldLoader: Cannot parse `{0}` into `{1}.{2}` ".F(s, f, t));
};
public static Action<string, Type> UnknownFieldAction = (s, f) =>