move uncaught exception to the top of app.coffee

This commit is contained in:
Aleksis Brezas 2015-01-14 17:01:27 +00:00 committed by Pablo Carranza Vélez
parent a9b909acaf
commit c667b55025

View File

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