Skip to content

Commit

Permalink
fix(db): fix javadb downloading error handling (#7642)
Browse files Browse the repository at this point in the history
Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io>
  • Loading branch information
nikpivkin authored Oct 3, 2024
1 parent cb0b3a9 commit 2c87f0c
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 2c87f0c

Please sign in to comment.