Fix error return when Order could not be created

This commit is contained in:
xenolf 2018-04-17 00:58:53 +02:00
parent 5d4f14bc6a
commit 94083744ee

View file

@ -348,8 +348,8 @@ func (c *Client) ObtainCertificate(domains []string, bundle bool, privKey crypto
order, err := c.createOrderForIdentifiers(domains) order, err := c.createOrderForIdentifiers(domains)
if err != nil { if err != nil {
identErrors := make(map[string]error) identErrors := make(map[string]error)
for _, auth := range order.Identifiers { for _, domain := range domains {
identErrors[auth.Value] = err identErrors[domain] = err
} }
return CertificateResource{}, identErrors return CertificateResource{}, identErrors
} }