From ddc36c8a8e94410c458ffbca6647c1826c43a388 Mon Sep 17 00:00:00 2001 From: Meredith Lancaster Date: Wed, 5 Mar 2025 07:31:28 -0700 Subject: [PATCH] Update pkg/cmd/attestation/verification/attestation.go Co-authored-by: Fredrik Skogman --- pkg/cmd/attestation/verification/attestation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/attestation/verification/attestation.go b/pkg/cmd/attestation/verification/attestation.go index 81c8c8813..5c96d9eb5 100644 --- a/pkg/cmd/attestation/verification/attestation.go +++ b/pkg/cmd/attestation/verification/attestation.go @@ -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 }