Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(db): fix javadb downloading error handling #7642

Merged
merged 2 commits into from
Oct 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: update error msg
Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io>
  • Loading branch information
nikpivkin committed Oct 3, 2024
commit 3575c1819e5d3d82d197582c1514e379bfc4303d
2 changes: 1 addition & 1 deletion pkg/javadb/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ 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 nil
Expand Down