tmp error check

This commit is contained in:
barisusakli
2014-10-28 00:33:58 -04:00
parent a4533703d4
commit 20314991a4

View File

@@ -103,6 +103,8 @@ if(nconf.get('ssl')) {
module.exports.server = server;
module.exports.init = function(callback) {
server.on("error", function(err){
winston.error(err.stack);
console.log(err.stack);
if (err.code === 'EADDRINUSE') {
winston.error('NodeBB address in use, exiting...');
if (cluster.isWorker) {