From c667b5502578032489f73c77df1d8833d0a46021 Mon Sep 17 00:00:00 2001 From: Aleksis Brezas Date: Wed, 14 Jan 2015 17:01:27 +0000 Subject: [PATCH] move uncaught exception to the top of app.coffee --- src/app.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app.coffee b/src/app.coffee index a27b8a8a..c650b3f5 100644 --- a/src/app.coffee +++ b/src/app.coffee @@ -1,12 +1,12 @@ +process.on 'uncaughtException', (e) -> + console.error('Got unhandled exception', e, e?.stack) + Promise = require 'bluebird' knex = require './db' utils = require './utils' bootstrap = require './bootstrap' config = require './config' -process.on 'uncaughtException', (e) -> - console.error('Got unhandled exception', e, e?.stack) - knex.init.then -> utils.mixpanelTrack('Supervisor start')