Skip to content

Commit

Permalink
lib: change concatenated string to template
Browse files Browse the repository at this point in the history
PR-URL: #16930
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
  • Loading branch information
pajangid authored and MylesBorins committed Nov 17, 2017
1 parent bf9eb04 commit 2ad051d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2ad051d

Please sign in to comment.