make failure of a lintpass nonfatal
This commit is contained in:
@@ -50,6 +50,8 @@ namespace RALint
|
|||||||
|
|
||||||
foreach (var customPassType in Game.modData.ObjectCreator
|
foreach (var customPassType in Game.modData.ObjectCreator
|
||||||
.GetTypesImplementing<ILintPass>())
|
.GetTypesImplementing<ILintPass>())
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
var customPass = (ILintPass)Game.modData.ObjectCreator
|
var customPass = (ILintPass)Game.modData.ObjectCreator
|
||||||
.CreateBasic(customPassType);
|
.CreateBasic(customPassType);
|
||||||
@@ -59,6 +61,11 @@ namespace RALint
|
|||||||
|
|
||||||
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