node: better error stack handling

This commit is contained in:
bordun 2018-10-27 12:21:13 +02:00
parent 5bcadb4f51
commit 1c4b136d67

View file

@ -16,7 +16,7 @@ function nodeMode() {
process.on('uncaughtException', (err)=>{
console.error('A JavaScript error occurred in the main process:')
console.trace(err)
console.error(err.stack)
})
}