diff options
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/main/app-upgrade.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/desktop/packages/mullvad-vpn/src/main/app-upgrade.ts b/desktop/packages/mullvad-vpn/src/main/app-upgrade.ts index f79452e734..fa32e02138 100644 --- a/desktop/packages/mullvad-vpn/src/main/app-upgrade.ts +++ b/desktop/packages/mullvad-vpn/src/main/app-upgrade.ts @@ -58,10 +58,9 @@ export default class AppUpgrade { } private async executeInstaller(verifiedInstallerPath: string) { - try { - await shell.openPath(verifiedInstallerPath); - } catch { - throw new Error(`Could not start installer at path: ${verifiedInstallerPath}`); + const errorMessage = await shell.openPath(verifiedInstallerPath); + if (errorMessage) { + throw new Error(`An error occurred after starting the installer: ${errorMessage}`); } } |
