Skip to content

Commit

Permalink
eliminate errwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
sgmiller committed Sep 9, 2021
1 parent 84b1894 commit 8f3ef44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/logical/pki/path_root.go
Expand Up @@ -443,11 +443,11 @@ func (b *backend) pathCASignSelfIssued(ctx context.Context, req *logical.Request
// to that of the signing key
signingPubType, signingAlgorithm, err := publicKeyType(signingBundle.Certificate.PublicKey)
if err != nil {
return nil, errwrap.Wrapf("error determining signing certificate algorithm type", err)
return nil, fmt.Errorf("error determining signing certificate algorithm type: %e", err)
}
certPubType, _, err := publicKeyType(cert.PublicKey)
if err != nil {
return nil, errwrap.Wrapf("error determining template algorithm type", err)
return nil, fmt.Errorf("error determining template algorithm type: %e", err)
}

if signingPubType != certPubType {
Expand Down

0 comments on commit 8f3ef44

Please sign in to comment.