forked from TrueCloudLab/lego
Fix error return when Order could not be created
This commit is contained in:
parent
5d4f14bc6a
commit
94083744ee
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue