Skip to content

Commit

Permalink
Fix error for invalid domains
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardonunesdev committed Sep 14, 2017
1 parent 8309ee0 commit 32d8cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion domain-ping.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const domainPing = (domain) => {

if (!isValidDomain(domain)) {
data.success = false;
data.error = 'Invalid domain name';
data.error = new Error('Invalid domain name');
return reject(data);
}

Expand Down

0 comments on commit 32d8cde

Please sign in to comment.