acme2: Display any errors when cleaning up challenge

(cherry picked from commit 5a8a4e7907)
This commit is contained in:
Girish Ramakrishnan
2018-09-28 14:32:59 -07:00
parent 32744d4fdf
commit db2fda0b18
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ function del(dnsConfig, zoneName, subdomain, type, values, callback) {
debug(`get: ${subdomain} in zone ${zoneName} of type ${type} with values ${JSON.stringify(values)}`);
if (type !== 'A') return callback(new DomainsError(DomainsError.EXTERNAL_ERROR, new Error('Not supported by GoDaddy API'))); // can never happen
if (type !== 'A') return callback(new DomainsError(DomainsError.EXTERNAL_ERROR, new Error('Record deletion is not supported by GoDaddy API')));
// check if the record exists at all so that we don't insert the "Dead" record for no reason
get(dnsConfig, zoneName, subdomain, type, function (error, values) {