make failure of a lintpass nonfatal

This commit is contained in:
Chris Forbes
2012-04-13 12:47:42 +12:00
parent 3e0f52db1a
commit da3ba159db

View File

@@ -50,6 +50,8 @@ namespace RALint
foreach (var customPassType in Game.modData.ObjectCreator
.GetTypesImplementing<ILintPass>())
{
try
{
var customPass = (ILintPass)Game.modData.ObjectCreator
.CreateBasic(customPassType);
@@ -59,6 +61,11 @@ namespace RALint
customPass.Run(EmitError, EmitWarning);
}
catch(Exception e)
{
EmitError("Failed with exception: {0}".F(e));
}
}
if (errors > 0)
{