diff --git a/src/background/background.js b/src/background/background.js index 0eb93e2..ebbde1c 100644 --- a/src/background/background.js +++ b/src/background/background.js @@ -126,6 +126,7 @@ if(portative) // handle promise rejections process.on('unhandledRejection', r => logTE('system', 'Rejection:', r)); +process.on('uncaughtException', (err, origin) => logTE('system', 'Exception:', err, 'Origin:', origin)); const gotTheLock = app.requestSingleInstanceLock() if (!gotTheLock) {