[jjo] fix panic from acmedns.go constructor failure

Signed-off-by: JuanJo Ciarlante <juanjosec@gmail.com>
This commit is contained in:
JuanJo Ciarlante 2018-08-27 19:36:13 -03:00
parent e1407f905b
commit ef2924c26a
No known key found for this signature in database
GPG Key ID: A3F7E24966727177
2 changed files with 4 additions and 1 deletions

View File

@ -53,7 +53,7 @@ func NewDNSProviderHostBytes(host string, accountJson []byte, dns01Nameservers [
var accounts map[string]goacmedns.Account
if err := json.Unmarshal(accountJson, &accounts); err != nil {
return nil, err
return nil, fmt.Errorf("Error unmarshalling accountJson: %s", err)
}
return &DNSProvider{

View File

@ -262,6 +262,9 @@ func (s *Solver) solverForIssuerProvider(issuer v1alpha1.GenericIssuer, provider
accountSecretBytes,
s.DNS01Nameservers,
)
if err != nil {
return nil, fmt.Errorf("error instantiating acmedns challenge solver: %s", err)
}
default:
return nil, fmt.Errorf("no dns provider config specified for provider %q", providerName)
}