Permalink
Browse files

err

  • Loading branch information...
1 parent 12efc45 commit c025a78c9ad9ffd8dd37606953a410fa33b9c8ec @dvv committed Mar 18, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 index.coffee
  2. +2 −2 index.js
View
@@ -135,7 +135,7 @@ module.exports = (server, options = {}) ->
# uncaught exceptions cause worker shutdown
#
process.on 'uncaughtException', (err) ->
- @log "EXCEPTION: #{err.stack or err.message}"
+ @log "EXCEPTION: #{err.stack or err.message or err}"
@exit 1
#
View
@@ -115,7 +115,7 @@ module.exports = function(server, options) {
return this.log('shutdown');
});
process.on('uncaughtException', function(err) {
- this.log("EXCEPTION: " + (err.stack || err.message));
+ this.log("EXCEPTION: " + (err.stack || err.message || err));
return this.exit(1);
});
comm = net.createConnection(options.ipc);
@@ -357,4 +357,4 @@ module.exports = function(server, options) {
return process.kill(process.pid, 'SIGHUP');
});
}
-};
+};

0 comments on commit c025a78

Please sign in to comment.