Skip to content

Commit

Permalink
Update pkg/db/db.go
Browse files Browse the repository at this point in the history
Co-authored-by: simar7 <1254783+simar7@users.noreply.github.com>
  • Loading branch information
knqyf263 and simar7 authored Oct 2, 2024
1 parent 66b8426 commit 151a544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (c *Client) NeedsUpdate(ctx context.Context, cliVersion string, skip bool)
}

if db.SchemaVersion < meta.Version {
log.ErrorContext(ctx, "The Trivy version is old. Update to the latest version.", log.String("version", cliVersion))
log.ErrorContext(ctx, "Trivy version is old. Update to the latest version.", log.String("version", cliVersion))
return false, xerrors.Errorf("the version of DB schema doesn't match. Local DB: %d, Expected: %d",
meta.Version, db.SchemaVersion)
}
Expand Down

0 comments on commit 151a544

Please sign in to comment.