Skip to content

Commit b16ec8c

Browse files
authored
Merge pull request #10 from jackyu1996/master
fix: app on error function parameter match
2 parents 758f05a + 8788594 commit b16ec8c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ts/app.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4107,9 +4107,9 @@ class App {
41074107
shell.showItemInFolder(file);
41084108
}
41094109
});
4110-
response.on('error', (reason: string) => {
4110+
response.on('error', (error: Error) => {
41114111
App.mainWindow.webContents.send('set-status', '');
4112-
dialog.showErrorBox(App.i18n.getString('App', 'Error'), reason);
4112+
dialog.showErrorBox(App.i18n.getString('App', 'Error'), error.message);
41134113
if (process.platform === 'win32' || process.platform === 'darwin') {
41144114
App.mainWindow.setProgressBar(0);
41154115
}
@@ -4202,4 +4202,4 @@ try {
42024202
new App(process.argv);
42034203
} catch (e) {
42044204
console.error("Unable to instantiate App();");
4205-
}
4205+
}

0 commit comments

Comments
 (0)