pki: Appended error to error message
This commit is contained in:
parent
ba1cc709bd
commit
2e23f1a992
|
@ -229,7 +229,7 @@ func (b *backend) pathIssueSignCert(
|
|||
Value: parsedBundle.CertificateBytes,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("Unable to store certificate locally")
|
||||
return nil, fmt.Errorf("Unable to store certificate locally: %v", err)
|
||||
}
|
||||
|
||||
return resp, nil
|
||||
|
|
|
@ -281,7 +281,7 @@ func (b *backend) pathCASignIntermediate(
|
|||
Value: parsedBundle.CertificateBytes,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("Unable to store certificate locally")
|
||||
return nil, fmt.Errorf("Unable to store certificate locally: %v", err)
|
||||
}
|
||||
|
||||
if parsedBundle.Certificate.MaxPathLen == 0 {
|
||||
|
|
Loading…
Reference in a new issue