mirror of
https://github.com/go-acme/lego.git
synced 2025-01-26 23:12:31 +02:00
Return the right error
This commit is contained in:
parent
487c8763d5
commit
b9ba9e58b3
@ -244,7 +244,7 @@ func (c *Client) ObtainSANCertificate(domains []string, bundle bool) (Certificat
|
||||
errs := c.solveChallenges(challenges)
|
||||
// If any challenge fails - return. Do not generate partial SAN certificates.
|
||||
if len(errs) > 0 {
|
||||
return CertificateResource{}, failures
|
||||
return CertificateResource{}, errs
|
||||
}
|
||||
|
||||
logf("[INFO] acme: Validations succeeded; requesting certificates")
|
||||
|
Loading…
x
Reference in New Issue
Block a user