mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 08:20:36 +01:00
tmp error check
This commit is contained in:
@@ -103,6 +103,8 @@ if(nconf.get('ssl')) {
|
|||||||
module.exports.server = server;
|
module.exports.server = server;
|
||||||
module.exports.init = function(callback) {
|
module.exports.init = function(callback) {
|
||||||
server.on("error", function(err){
|
server.on("error", function(err){
|
||||||
|
winston.error(err.stack);
|
||||||
|
console.log(err.stack);
|
||||||
if (err.code === 'EADDRINUSE') {
|
if (err.code === 'EADDRINUSE') {
|
||||||
winston.error('NodeBB address in use, exiting...');
|
winston.error('NodeBB address in use, exiting...');
|
||||||
if (cluster.isWorker) {
|
if (cluster.isWorker) {
|
||||||
|
|||||||
Reference in New Issue
Block a user