Wrap sign error from an external lib (#10301)
This commit is contained in:
parent
3fb284c217
commit
cf39c9e161
|
@ -532,7 +532,7 @@ func (b *creationBundle) sign() (retCert *ssh.Certificate, retErr error) {
|
|||
algo := b.Role.AlgorithmSigner
|
||||
sig, err := sshAlgorithmSigner.SignWithAlgorithm(rand.Reader, certificateBytes, algo)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to generate signed SSH key: sign error")
|
||||
return nil, errwrap.Wrapf("failed to generate signed SSH key: sign error: {{err}}", err)
|
||||
}
|
||||
|
||||
certificate.Signature = sig
|
||||
|
|
Loading…
Reference in New Issue