We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 758f05a + 8788594 commit b16ec8cCopy full SHA for b16ec8c
1 file changed
ts/app.ts
@@ -4107,9 +4107,9 @@ class App {
4107
shell.showItemInFolder(file);
4108
}
4109
});
4110
- response.on('error', (reason: string) => {
+ response.on('error', (error: Error) => {
4111
App.mainWindow.webContents.send('set-status', '');
4112
- dialog.showErrorBox(App.i18n.getString('App', 'Error'), reason);
+ dialog.showErrorBox(App.i18n.getString('App', 'Error'), error.message);
4113
if (process.platform === 'win32' || process.platform === 'darwin') {
4114
App.mainWindow.setProgressBar(0);
4115
@@ -4202,4 +4202,4 @@ try {
4202
new App(process.argv);
4203
} catch (e) {
4204
console.error("Unable to instantiate App();");
4205
-}
+}
0 commit comments