This error is already a SubdomainError

This commit is contained in:
Johannes Zellner
2017-01-10 11:40:05 +01:00
parent 1d44d0a987
commit 226164c591
+1 -1
View File
@@ -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);