mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-22 19:21:09 +01:00
pki: Appended error to error message
This commit is contained in:
parent
c8319e330d
commit
faa975326d
@ -229,7 +229,7 @@ func (b *backend) pathIssueSignCert(
|
|||||||
Value: parsedBundle.CertificateBytes,
|
Value: parsedBundle.CertificateBytes,
|
||||||
})
|
})
|
||||||
if err != nil {
|
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
|
return resp, nil
|
||||||
|
|||||||
@ -281,7 +281,7 @@ func (b *backend) pathCASignIntermediate(
|
|||||||
Value: parsedBundle.CertificateBytes,
|
Value: parsedBundle.CertificateBytes,
|
||||||
})
|
})
|
||||||
if err != nil {
|
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 {
|
if parsedBundle.Certificate.MaxPathLen == 0 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user