Return the right error

This commit is contained in:
xenolf 2015-11-17 23:07:13 +01:00
parent 487c8763d5
commit b9ba9e58b3

View file

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