From cec0d0b5728a63827eb950cb5f1eb7f66ac9a9ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathis=20Dr=C3=B6ge?= Date: Tue, 6 Aug 2024 15:33:29 +0200 Subject: [PATCH] Log the full error in the uncaughtException handler --- src/backend/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backend/main.ts b/src/backend/main.ts index cde2f4110a..707a7b6f95 100644 --- a/src/backend/main.ts +++ b/src/backend/main.ts @@ -518,11 +518,13 @@ ipcMain.once('frontendReady', () => { // Maybe this can help with white screens process.on('uncaughtException', async (err) => { - logError(`${err.name}: ${err.message}`, LogPrefix.Backend) + logError(err, LogPrefix.Backend) + // We might get "object has been destroyed" exceptions in CI, since we start // and close Heroic quickly there. Displaying an error box would lock up // the test (until the timeout is reached), so let's not do that if (process.env.CI === 'e2e') return + showDialogBoxModalAuto({ title: i18next.t( 'box.error.uncaught-exception.title',