diff --git a/lib/dns.js b/lib/dns.js index aad0ebb17cee12..09076a6b4bbd37 100644 --- a/lib/dns.js +++ b/lib/dns.js @@ -46,7 +46,7 @@ function errnoException(err, syscall, hostname) { } var ex = null; if (typeof err === 'string') { // c-ares error code. - const errHost = hostname ? ' ' + hostname : ''; + const errHost = hostname ? ` ${hostname}` : ''; ex = new Error(`${syscall} ${err}${errHost}`); ex.code = err; ex.errno = err;