Skip to content

Commit 93ad859

Browse files
committed
Fix CONNECTION_CLOSED false and no host + port if path is false
1 parent 60dc30f commit 93ad859

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/types.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ module.exports.toKebab = x => x.replace(/_/g, '-')
200200

201201
module.exports.errors = {
202202
connection: (x, options) => Object.assign(
203-
new Error('write CONNECTION_' + x + ' ' + options.path || (options.host + ':' + options.port)),
203+
new Error(('write CONNECTION_' + x + ' ' + (options.path || (options.host + ':' + options.port)))),
204204
{
205205
code: 'CONNECTION_' + x,
206206
errno: 'CONNECTION_' + x,

0 commit comments

Comments
 (0)