From 6eda2ace90bc41c5e2051233494a8dcbdba43b3e Mon Sep 17 00:00:00 2001 From: Manoah Tervoort <149895ja@gmail.com> Date: Fri, 20 Dec 2024 22:08:49 +0100 Subject: [PATCH] chore: don't catch url as error --- src-electron/main/downloads.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src-electron/main/downloads.ts b/src-electron/main/downloads.ts index 2c8678b62..53b9cc3d6 100644 --- a/src-electron/main/downloads.ts +++ b/src-electron/main/downloads.ts @@ -172,21 +172,6 @@ async function processQueue() { const downloadId = await manager.download({ callbacks: { onDownloadCancelled: async ({ id }) => { - captureElectronError(url, { - contexts: { - fn: { - name: 'src-electron/downloads processQueue onDownloadCancelled', - params: { - directory: saveDir, - isDownloadErrorExpected: await isDownloadErrorExpected(), - saveAsFilename: destFilename, - window: mainWindow?.id, - }, - url, - }, - }, - }); - sendToWindow(mainWindow, 'downloadCancelled', { id }); activeDownloadIds.splice(activeDownloadIds.indexOf(url + saveDir), 1); processQueue(); // Process next download