From 8cc2a7b0ebfcc0699bc0514c231a660e72782e21 Mon Sep 17 00:00:00 2001 From: DmitriyLewen Date: Thu, 29 Feb 2024 13:41:25 +0600 Subject: [PATCH] refactor(log): change warning if no vulnerability details are found --- pkg/vulnerability/vulnerability.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/vulnerability/vulnerability.go b/pkg/vulnerability/vulnerability.go index 504d9293e873..fd99032c5578 100644 --- a/pkg/vulnerability/vulnerability.go +++ b/pkg/vulnerability/vulnerability.go @@ -72,7 +72,7 @@ func (c Client) FillInfo(vulns []types.DetectedVulnerability) { vulnID := vulns[i].VulnerabilityID vuln, err := c.dbc.GetVulnerability(vulnID) if err != nil { - log.Logger.Warnf("Error while getting vulnerability details: %s", err) + log.Logger.Warnf("Unable to get vulnerability details (CVE may be rejected): %s", err) continue }