This error is already a SubdomainError
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user