forked from TrueCloudLab/lego
Return the right error
This commit is contained in:
parent
487c8763d5
commit
b9ba9e58b3
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ func (c *Client) ObtainSANCertificate(domains []string, bundle bool) (Certificat
|
||||||
errs := c.solveChallenges(challenges)
|
errs := c.solveChallenges(challenges)
|
||||||
// If any challenge fails - return. Do not generate partial SAN certificates.
|
// If any challenge fails - return. Do not generate partial SAN certificates.
|
||||||
if len(errs) > 0 {
|
if len(errs) > 0 {
|
||||||
return CertificateResource{}, failures
|
return CertificateResource{}, errs
|
||||||
}
|
}
|
||||||
|
|
||||||
logf("[INFO] acme: Validations succeeded; requesting certificates")
|
logf("[INFO] acme: Validations succeeded; requesting certificates")
|
||||||
|
|
Loading…
Reference in a new issue