From 63c9469bdd91ee71ee643862329a3948b42c561d Mon Sep 17 00:00:00 2001 From: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com> Date: Mon, 22 Apr 2024 23:54:26 +0600 Subject: [PATCH] refactor: change warning if no vulnerability details are found (#6230) Signed-off-by: knqyf263 Co-authored-by: knqyf263 --- 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 56dfb7e1f1b3..8e27ee4733fc 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.Warn("Error while getting vulnerability details", log.Err(err)) + log.Warn("Unable to get vulnerability details (CVE may be rejected)", log.Err(err)) continue }