From ac1fbc740ede0d4a25270e0e182ffb6899d3441b Mon Sep 17 00:00:00 2001 From: Roman Shtylman Date: Sun, 10 Nov 2013 00:19:00 -0500 Subject: [PATCH] continue to handle uncaught exception until exit --- bookrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookrc.js b/bookrc.js index 71d7c7b..b2f760c 100644 --- a/bookrc.js +++ b/bookrc.js @@ -5,7 +5,7 @@ require('superstack'); log.use(require('book-git')(__dirname)); log.use(require('book-raven')(process.env.SENTRY_DSN)); -process.once('uncaughtException', function(err) { +process.on('uncaughtException', function(err) { log.panic(err); setTimeout(process.exit.bind(process, 1), 2000); });