Skip to content

Commit

Permalink
fix: Missing errors captured in custom analysis
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
  • Loading branch information
AlexsJones committed Jul 15, 2024
1 parent 34b6de3 commit f42b76d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/analysis/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ func (a *Analysis) RunCustomAnalysis() {

result, err := canClient.Run()
if err != nil {
a.Errors = append(a.Errors, fmt.Sprintf("[%s] %s", cAnalyzer.Name, err))
} else {
a.Results = append(a.Results, result)
}
}
Expand Down

0 comments on commit f42b76d

Please sign in to comment.