Skip to content

Commit

Permalink
fix(db): fix javadb downloading error handling [backport: release/v0.…
Browse files Browse the repository at this point in the history
…56] (#7646)

Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io>
Co-authored-by: Nikita Pivkin <nikita.pivkin@smartforce.io>
  • Loading branch information
aqua-bot and nikpivkin authored Oct 3, 2024
1 parent d246401 commit 5dbdadf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/javadb/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ func (u *Updater) downloadDB(ctx context.Context) error {
Quiet: u.quiet,
}
if err := artifacts.Download(ctx, u.dbDir, downloadOpt); err != nil {
return xerrors.Errorf("failed to download vulnerability DB: %w", err)
return xerrors.Errorf("failed to download Java DB: %w", err)
}

return xerrors.New("failed to download Java DB from any source")
return nil
}

func Init(cacheDir string, javaDBRepositories []name.Reference, skip, quiet bool, registryOption ftypes.RegistryOptions) {
Expand Down

0 comments on commit 5dbdadf

Please sign in to comment.