From b6dd2a1181b478a4fb8543ab7529ce595fa7d4a8 Mon Sep 17 00:00:00 2001 From: Alex Jones Date: Mon, 15 Jul 2024 12:02:16 +0100 Subject: [PATCH] feat: fix the custom-analysis printing (#1195) Signed-off-by: Alex Jones --- pkg/analysis/analysis.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/analysis/analysis.go b/pkg/analysis/analysis.go index 5ee36cbec0..cf4163d5e4 100644 --- a/pkg/analysis/analysis.go +++ b/pkg/analysis/analysis.go @@ -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) } }