This commit is contained in:
wltsmrz
2014-03-07 13:31:37 -08:00
parent c0db5e251a
commit a188ae6ace

View File

@@ -36,7 +36,7 @@ function Server(remote, opts) {
throw new Error('Server host is malformed, use "host" and "port" server configuration');
}
if (isNaN(opts.port)) {
if (typeof opts.port !== 'number') {
throw new TypeError('Server configuration "port" is not a Number');
}