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

@@ -59,9 +59,13 @@ namespace OpenRA.Network
return session;
}
catch (InvalidOperationException e)
catch (YamlException)
{
throw new InvalidOperationException("Session deserialized invalid MiniYaml:\n{0}".F(data), e);
throw new YamlException("Session deserialized invalid MiniYaml:\n{0}".F(data));
}
catch (InvalidOperationException)
{
throw new YamlException("Session deserialized invalid MiniYaml:\n{0}".F(data));
}
}