make failure of a lintpass nonfatal
This commit is contained in:
@@ -51,13 +51,20 @@ namespace RALint
|
|||||||
foreach (var customPassType in Game.modData.ObjectCreator
|
foreach (var customPassType in Game.modData.ObjectCreator
|
||||||
.GetTypesImplementing<ILintPass>())
|
.GetTypesImplementing<ILintPass>())
|
||||||
{
|
{
|
||||||
var customPass = (ILintPass)Game.modData.ObjectCreator
|
try
|
||||||
.CreateBasic(customPassType);
|
{
|
||||||
|
var customPass = (ILintPass)Game.modData.ObjectCreator
|
||||||
|
.CreateBasic(customPassType);
|
||||||
|
|
||||||
if (verbose)
|
if (verbose)
|
||||||
Console.WriteLine("Pass: {0}".F(customPassType.ToString()));
|
Console.WriteLine("Pass: {0}".F(customPassType.ToString()));
|
||||||
|
|
||||||
customPass.Run(EmitError, EmitWarning);
|
customPass.Run(EmitError, EmitWarning);
|
||||||
|
}
|
||||||
|
catch(Exception e)
|
||||||
|
{
|
||||||
|
EmitError("Failed with exception: {0}".F(e));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (errors > 0)
|
if (errors > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user