From ffbd26026e19b0d74ab75f1bd8fbec8e2b3ed718 Mon Sep 17 00:00:00 2001 From: "Rodolfo M. Raya" Date: Fri, 11 Oct 2024 14:24:24 -0300 Subject: [PATCH] Updated electron and TypeScript --- package.json | 4 ++-- ts/Swordfish.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index fd71d96..c14ce3c 100644 --- a/package.json +++ b/package.json @@ -20,8 +20,8 @@ "url": "https://github.com/rmraya/Swordfish.git" }, "devDependencies": { - "electron": "^32.1.2", - "typescript": "^5.6.2" + "electron": "^32.2.0", + "typescript": "^5.6.3" }, "dependencies": { "mtengines": "^2.0.0", diff --git a/ts/Swordfish.ts b/ts/Swordfish.ts index b71c43b..0afd1bf 100644 --- a/ts/Swordfish.ts +++ b/ts/Swordfish.ts @@ -5156,9 +5156,9 @@ export class Swordfish { shell.showItemInFolder(file); } }); - response.on('error', (reason: string) => { + response.on('error', (error: Error) => { Swordfish.mainWindow.webContents.send('set-status', ''); - dialog.showErrorBox('Error', reason); + dialog.showErrorBox('Error', error.message); if (process.platform === 'win32' || process.platform === 'darwin') { Swordfish.mainWindow.setProgressBar(0); }