Skip to content

Commit

Permalink
Merge pull request #10 from jackyu1996/master
Browse files Browse the repository at this point in the history
fix: app on error function parameter match
  • Loading branch information
rmraya authored Oct 11, 2024
2 parents 758f05a + 8788594 commit b16ec8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ts/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4107,9 +4107,9 @@ class App {
shell.showItemInFolder(file);
}
});
response.on('error', (reason: string) => {
response.on('error', (error: Error) => {
App.mainWindow.webContents.send('set-status', '');
dialog.showErrorBox(App.i18n.getString('App', 'Error'), reason);
dialog.showErrorBox(App.i18n.getString('App', 'Error'), error.message);
if (process.platform === 'win32' || process.platform === 'darwin') {
App.mainWindow.setProgressBar(0);
}
Expand Down Expand Up @@ -4202,4 +4202,4 @@ try {
new App(process.argv);
} catch (e) {
console.error("Unable to instantiate App();");
}
}

0 comments on commit b16ec8c

Please sign in to comment.