File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1+ import { inspect } from "util" ;
12import { AdvancedConfig } from "../interfaces/AdvancedRuleConfig" ;
23import { AdvancedRuleDefinition } from "../interfaces/AdvancedRuleDefintion" ;
34import { AdvancedSuppression } from "../interfaces/AdvancedSuppression" ;
@@ -61,7 +62,12 @@ export abstract class AdvancedRule
6162 return new RuleResult ( this as unknown as IRuleDefinition , [ ] ) ;
6263 }
6364
64- let ruleResult = ( this as IRuleDefinition ) . execute ( flow , ruleConfiguration ) ;
65+ let ruleResult ;
66+ try {
67+ ruleResult = ( this as IRuleDefinition ) . execute ( flow , ruleConfiguration ) ;
68+ } catch ( error ) {
69+ return new RuleResult ( this as unknown as IRuleDefinition , [ ] , inspect ( error ) ) ;
70+ }
6571
6672 if ( hasAdvancedSuppression ( this ) ) {
6773 ruleResult = this . suppress ( ruleResult , ruleConfiguration ) ;
You can’t perform that action at this time.
0 commit comments