diff --git a/lib/net.js b/lib/net.js index 27df6253f16145..a4dcbec84b49f0 100644 --- a/lib/net.js +++ b/lib/net.js @@ -986,9 +986,9 @@ Socket.prototype.connect = function() { if (pipe) { if (typeof path !== 'string') { throw new errors.TypeError('ERR_INVALID_ARG_TYPE', - 'options.path', - 'string', - path); + 'options.path', + 'string', + path); } internalConnect(this, path); } else {