We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf9eb04 commit 2ad051dCopy full SHA for 2ad051d
lib/dns.js
@@ -46,7 +46,7 @@ function errnoException(err, syscall, hostname) {
46
}
47
var ex = null;
48
if (typeof err === 'string') { // c-ares error code.
49
- const errHost = hostname ? ' ' + hostname : '';
+ const errHost = hostname ? ` ${hostname}` : '';
50
ex = new Error(`${syscall} ${err}${errHost}`);
51
ex.code = err;
52
ex.errno = err;
0 commit comments