catch uncaught

This commit is contained in:
Chayapak 2023-07-02 13:45:11 +07:00
parent 7e58344c8d
commit dd037643aa

View file

@ -53,3 +53,7 @@ io.on('connection', (socket) => {
socket.on('reset', resetVM) socket.on('reset', resetVM)
}) })
process.on('uncaughtException', (e) => {
console.log(`Caught an uncaught exception!\n${e.stack}`)
})