From 226164c5911afe554fb427ebddbd5ca36e2c9066 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 10 Jan 2017 11:40:05 +0100 Subject: [PATCH] This error is already a SubdomainError --- src/dns/digitalocean.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dns/digitalocean.js b/src/dns/digitalocean.js index bb6f4be14..18c9d1a90 100644 --- a/src/dns/digitalocean.js +++ b/src/dns/digitalocean.js @@ -189,7 +189,7 @@ function verifyDnsConfig(dnsConfig, domain, ip, callback) { if (error || !nameservers) return callback(error || new Error('Unable to get nameservers')); upsert(credentials, domain, 'my', 'A', [ ip ], function (error, changeId) { - if (error) return callback(new SubdomainError(SubdomainError.INTERNAL_ERROR, error)); + if (error) return callback(error); debug('verifyDnsConfig: A record added with change id %s', changeId);