From b9ba9e58b386847292646ff202e5fbc5d70e46c6 Mon Sep 17 00:00:00 2001 From: xenolf Date: Tue, 17 Nov 2015 23:07:13 +0100 Subject: [PATCH] Return the right error --- acme/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme/client.go b/acme/client.go index d36ae1f8..e06917a0 100644 --- a/acme/client.go +++ b/acme/client.go @@ -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")