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)
if err != nil {
identErrors := make(map[string]error)
for _, auth := range order.Identifiers {
identErrors[auth.Value] = err
for _, domain := range domains {
identErrors[domain] = err
}
return CertificateResource{}, identErrors
}