insomnia/packages/insomnia-app/app/main/error-handling.js

10 lines
254 B
JavaScript
Raw Normal View History

2018-06-25 17:42:50 +00:00
export function init() {
process.on('uncaughtException', err => {
console.error('[catcher] Uncaught exception:', err.stack);
});
process.on('unhandledRejection', err => {
console.error('[catcher] Unhandled rejection:', err.stack);
});
}