0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-27 22:59:51 -05:00

log fatal errors

This commit is contained in:
Alex Kocharin 2013-12-10 14:29:46 +04:00
parent 77182a755d
commit 36fa1ba655

View file

@ -119,3 +119,8 @@ function write_config_banner(def, config) {
console.log('===========================================================')
}
process.on('uncaughtException', function(err) {
logger.logger.fatal({err: err}, 'uncaught exception, please report this\n@{err.stack}')
process.exit(255)
})