6 lines
142 B
TypeScript
6 lines
142 B
TypeScript
|
export function catchError() {
|
||
|
process.on('unhandledRejection', (reason, p) => {
|
||
|
console.log('Promise: ', p, 'Reason: ', reason)
|
||
|
})
|
||
|
}
|