процесс обработки ошибок node.js
process.on('warning', veri => console.log(veri))
process.on('unhandledRejection', veri => console.log(veri))
process.on('uncaughtException', veri => console.log(veri))
Pudochu