Permalink
Browse files

catch http server error, prevent quit

  • Loading branch information...
1 parent da87654 commit 8260cef9369ef82d04f0e6761abeb67883a8dc1e @kaven276 committed Oct 23, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/common.js
View
@@ -23,6 +23,10 @@ exports.start_dynamic = function(handler){
ports.http = cfg.http_port;
console.log('PSP.WEB server is listening at http port ' + cfg.http_port);
})
+ .on('error',function(error){
+ console.warn(error.toString());
+ console.trace();
+ })
.on('clientError', function(){
console.warn('client error occurred !');
});

0 comments on commit 8260cef

Please sign in to comment.