From 3d8b72ac384cc842337805628e7a208bd395ebcc Mon Sep 17 00:00:00 2001 From: Manoah Tervoort <149895ja@gmail.com> Date: Mon, 11 Nov 2024 13:17:29 +0100 Subject: [PATCH] chore: improve sentry error catching --- src-electron/main/updater.ts | 2 +- src/components/media/DownloadStatus.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src-electron/main/updater.ts b/src-electron/main/updater.ts index bfbca4900c..c6c1b53e42 100644 --- a/src-electron/main/updater.ts +++ b/src-electron/main/updater.ts @@ -27,6 +27,6 @@ const triggerUpdateCheck = async (attempt = 1) => { } } } catch (error) { - errorCatcher(error); + errorCatcher(error, { contexts: { fn: { name: 'triggerUpdateCheck' } } }); } }; diff --git a/src/components/media/DownloadStatus.vue b/src/components/media/DownloadStatus.vue index 4432b6fd88..5386638e84 100644 --- a/src/components/media/DownloadStatus.vue +++ b/src/components/media/DownloadStatus.vue @@ -56,7 +56,7 @@ const updateOnline = async () => { try { online.value = await isOnline(); } catch (error) { - errorCatcher(error); + errorCatcher(error, { contexts: { fn: { name: 'updateOnline' } } }); } };