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')