pki: Appended error to error message

This commit is contained in:
vishalnayak 2016-12-19 10:49:32 -05:00
parent ba1cc709bd
commit 2e23f1a992
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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 {