Browse files

Added uncaughtException handler to trap errors from Jerk

  • Loading branch information...
1 parent f1d530a commit 4b22374afac5ad8d494c6b4942177455e820581e @davglass committed Jan 20, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/yuibot.js
View
3 lib/yuibot.js
@@ -109,3 +109,6 @@ function to(message, def, idx) {
return !!message.match_data[idx] ? message.match_data[idx] : def || message.user
}
+process.on('uncaughtException', function(e) {
+ console.log(e.stack);
+});

0 comments on commit 4b22374

Please sign in to comment.