From 7324cef87aeb772e3231c27930d30de77543e269 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Wed, 15 May 2024 18:56:52 +0200 Subject: [PATCH] write uncaught exception to console --- app/src/electron.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/electron.js b/app/src/electron.js index b72f2e1e..fca48095 100644 --- a/app/src/electron.js +++ b/app/src/electron.js @@ -27,6 +27,10 @@ let mainModule; // let getLogger; // let loadLogsContent; +process.on('uncaughtException', function (error) { + console.error('uncaughtException', error); +}); + const isMac = () => os.platform() == 'darwin'; // unhandled({