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 651fee4 commit 44c3cc2Copy full SHA for 44c3cc2
lib/dns.js
@@ -51,7 +51,7 @@ function errnoException(err, syscall, hostname) {
51
}
52
var ex = null;
53
if (typeof err === 'string') { // c-ares error code.
54
- const errHost = hostname ? ' ' + hostname : '';
+ const errHost = hostname ? ` ${hostname}` : '';
55
ex = new Error(`${syscall} ${err}${errHost}`);
56
ex.code = err;
57
ex.errno = err;
0 commit comments