Skip to content

Commit

Permalink
added process.on error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismatthieu committed Dec 21, 2011
1 parent 77776bb commit a800846
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ var ircjs = require('irc-js');

var app = express.createServer();

process.on('uncaughtException', function (err) {
console.log('Uncaught error: ' + err.stack);
});

app.configure(function(){
// app.use(express.compiler({ src: __dirname + '/public', enable: ['stylus'] }));
app.use(express.static(__dirname + '/public'));
Expand Down

0 comments on commit a800846

Please sign in to comment.