Skip to content

Commit

Permalink
add hostname to error message invalid hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
arnesetzer committed Jul 31, 2024
1 parent 11f544c commit d49f771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/request_urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function request_urls(config, urls, callback) {
console.error( err );
//Check if hostname is valid. Abort execution if not
if( err.code === 'ENOTFOUND' ) {
throw new Error( 'Invalid hostname, exiting' );
throw new Error( 'Invalid hostname: "'+ err.hostname + '". Stopping execution.' );
}
urls.push(url);
}
Expand Down

0 comments on commit d49f771

Please sign in to comment.