insomnia/app/main/error-handling.js
Gregory Schier 7adf8591c1
Switch to Google Analytics API (#609)
* Almost working

* First working implementation

* Simplified analytics utils

* Fix tests
2017-11-18 22:47:54 +00:00

10 lines
255 B
JavaScript

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);
});
}