Permalink
Browse files

check for EACCES

  • Loading branch information...
1 parent 89cd91c commit c966dbc14d2682cf557dc40073b4a59a34d106f8 @nairboon nairboon committed Dec 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/portfinder.js
View
@@ -51,7 +51,7 @@ exports.getPort = function (options, callback) {
function onError (err) {
options.server.removeListener('listening', onListen);
- if (err.code !== 'EADDRINUSE') {
+ if (err.code !== 'EADDRINUSE' && err.code !== 'EACCES') {
return callback(err);
}

0 comments on commit c966dbc

Please sign in to comment.