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:
parent
77182a755d
commit
36fa1ba655
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue