Skip to content

Commit

Permalink
Fail when grype cant check for db update
Browse files Browse the repository at this point in the history
Closes anchore#310

Signed-off-by: Shane Dell <[email protected]>
  • Loading branch information
shanedell committed Apr 20, 2023
1 parent b9fa68e commit e38fdba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grype/db/curator.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ func (c *Curator) Update() (bool, error) {

updateAvailable, metadata, updateEntry, err := c.IsUpdateAvailable()
if err != nil {
// we want to continue if possible even if we can't check for an update
log.Warnf("unable to check for vulnerability database update")
log.Debugf("check for vulnerability update failed: %+v", err)
return false, fmt.Errorf("unable to update vulnerability database: %w", err)
}
if updateAvailable {
log.Infof("downloading new vulnerability DB")
Expand Down

0 comments on commit e38fdba

Please sign in to comment.