Improve manual dns backend error message

This commit is contained in:
Johannes Zellner
2017-01-10 12:09:30 +01:00
parent 714ae18658
commit 3f925e5b96

View File

@@ -110,7 +110,7 @@ function verifyDnsConfig(dnsConfig, domain, ip, callback) {
});
}, function (success) {
if (stashedError) return callback(stashedError);
if (!success) return callback(new SubdomainError(SubdomainError.BAD_FIELD, 'Unable to resolve this domain'));
if (!success) return callback(new SubdomainError(SubdomainError.BAD_FIELD, 'This domain does not resolve to the servers IP'));
callback(null, { provider: dnsConfig.provider, wildcard: !!dnsConfig.wildcard });
});