Skip to content

Commit

Permalink
Fix CONNECTION_CLOSED false and no host + port if path is false
Browse files Browse the repository at this point in the history
  • Loading branch information
porsager committed Mar 9, 2020
1 parent 60dc30f commit 93ad859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ module.exports.toKebab = x => x.replace(/_/g, '-')

module.exports.errors = {
connection: (x, options) => Object.assign(
new Error('write CONNECTION_' + x + ' ' + options.path || (options.host + ':' + options.port)),
new Error(('write CONNECTION_' + x + ' ' + (options.path || (options.host + ':' + options.port)))),
{
code: 'CONNECTION_' + x,
errno: 'CONNECTION_' + x,
Expand Down

0 comments on commit 93ad859

Please sign in to comment.