Skip to content

Commit

Permalink
updated per code review
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zheng <patrickzheng@microsoft.com>
  • Loading branch information
Two-Hearts committed Aug 31, 2023
1 parent 06b9ea4 commit f0b5b46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion notation.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ func Verify(ctx context.Context, verifier Verifier, repo registry.Repository, ve
return err
}
outcome.Error = fmt.Errorf("failed to verify signature with digest %v, %w", sigManifestDesc.Digest, outcome.Error)
verificationOutcomes = append(verificationOutcomes, outcome)
verificationFailedErr = errors.Join(verificationFailedErr, outcome.Error)

Check failure on line 384 in notation.go

View workflow job for this annotation

GitHub Actions / build / build (1.19)

undefined: errors.Join
continue
}
// at this point, the signature is verified successfully
Expand Down
2 changes: 1 addition & 1 deletion verifier/truststore/truststore.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (trustStore *x509TrustStore) GetCertificates(ctx context.Context, storeType
fileInfo, err := os.Lstat(path)
if err != nil {
if os.IsNotExist(err) {
return nil, ErrorTrustStore{InnerError: fs.ErrNotExist, Msg: fmt.Sprintf("the trust store %q of type %q doesn't exist", namedStore, storeType)}
return nil, ErrorTrustStore{InnerError: err, Msg: fmt.Sprintf("the trust store %q of type %q doesn't exist", namedStore, storeType)}
}
return nil, ErrorTrustStore{InnerError: fmt.Errorf("failed to access the trust store %q: %w", path, err)}
}
Expand Down

0 comments on commit f0b5b46

Please sign in to comment.