catch uncaught
This commit is contained in:
parent
7e58344c8d
commit
dd037643aa
1 changed files with 4 additions and 0 deletions
4
index.js
4
index.js
|
@ -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}`)
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in a new issue