Skip to content

Commit

Permalink
refactor: change warning if no vulnerability details are found (#6230)
Browse files Browse the repository at this point in the history
Signed-off-by: knqyf263 <knqyf263@gmail.com>
Co-authored-by: knqyf263 <knqyf263@gmail.com>
  • Loading branch information
DmitriyLewen and knqyf263 committed Apr 22, 2024
1 parent aa822c2 commit 63c9469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/vulnerability/vulnerability.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 63c9469

Please sign in to comment.