mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
5f4c19da35
Co-authored-by: Opender Singh <opender.singh@konghq.com>
9 lines
262 B
TypeScript
9 lines
262 B
TypeScript
export function init() {
|
|
process.on('uncaughtException', err => {
|
|
console.error('[catcher] Uncaught exception:', err.stack);
|
|
});
|
|
process.on('unhandledRejection', (err: Error) => {
|
|
console.error('[catcher] Unhandled rejection:', err.stack);
|
|
});
|
|
}
|