Don't crash on uncaught exceptions

This commit is contained in:
Petros Aggelatos 2013-12-23 04:25:21 +00:00 committed by Pablo Carranza Vélez
parent dc3708d14f
commit 469777c232

View File

@ -1,3 +1,7 @@
process.on('uncaughtException', function (e) {
console.log('Got unhandled exception', e)
})
require('coffee-script');
var knex = require('./db')