Skip to content

Commit 2c87f0c

Browse files
authored
fix(db): fix javadb downloading error handling (#7642)
Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io>
1 parent cb0b3a9 commit 2c87f0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/javadb/client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ func (u *Updater) downloadDB(ctx context.Context) error {
104104
Quiet: u.quiet,
105105
}
106106
if err := artifacts.Download(ctx, u.dbDir, downloadOpt); err != nil {
107-
return xerrors.Errorf("failed to download vulnerability DB: %w", err)
107+
return xerrors.Errorf("failed to download Java DB: %w", err)
108108
}
109109

110-
return xerrors.New("failed to download Java DB from any source")
110+
return nil
111111
}
112112

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

0 commit comments

Comments
 (0)