Skip to content
Prev Previous commit
silly mistake missing $
  • Loading branch information
benjamingr committed Mar 17, 2016
commit b3ced41b324f6baba0f4e32e7f62c6424bc8cd6c
2 changes: 1 addition & 1 deletion lib/dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ exports.lookup = function lookup(hostname, options, callback) {
}

if (family !== 0 && family !== 4 && family !== 6) {
const msg = `Invalid argument: family must be 4 or 6, got {family}`;
const msg = `Invalid argument: family must be 4 or 6, got ${family}`;
throw new TypeError(msg);
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the $ for the template string went missing.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :)


Expand Down