Bugs Fixed

This commit is contained in:
Luis Fernando Molina committed 2020-07-22 20:33:17 +02:00
1 parent 744d5939a3
commit ac6493dff1
3 files changed
+17 -7

No files matched your search

+2
View File
@@ -47,12 +47,14 @@ global.PRECISE = function (floatNumber, precision) {
process.on('uncaughtException', function (err) {
console.log('[ERROR] Task Server -> server -> uncaughtException -> err.message = ' + err.message)
console.log('[ERROR] Task Server -> server -> uncaughtException -> err.stack = ' + err.stack)
console.log(err.stack)
global.EXIT_NODE_PROCESS()
})
process.on('unhandledRejection', (reason, p) => {
console.log('[ERROR] Task Server -> server -> unhandledRejection -> reason = ' + JSON.stringify(reason))
console.log('[ERROR] Task Server -> server -> unhandledRejection -> p = ' + JSON.stringify(p))
console.log(reason.stack)
global.EXIT_NODE_PROCESS()
})