Update pkg/cmd/attestation/verification/attestation.go

Co-authored-by: Fredrik Skogman <kommendorkapten@github.com>
This commit is contained in:
Meredith Lancaster 2025-03-05 07:31:28 -07:00 committed by GitHub
parent 671c4c23a9
commit ddc36c8a8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,7 +43,7 @@ func GetLocalAttestations(path string) ([]*api.Attestation, error) {
if err != nil {
var pathErr *os.PathError
if errors.As(err, &pathErr) {
return nil, fmt.Errorf("could not load content from file path %s", path)
return nil, fmt.Errorf("could not load content from file path %s: %w", path, err)
} else if errors.Is(err, bundle.ErrValidation) {
return nil, err
}