Update pkg/cmd/attestation/verification/attestation.go
Co-authored-by: Fredrik Skogman <kommendorkapten@github.com>
This commit is contained in:
parent
671c4c23a9
commit
ddc36c8a8e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue