diff options
| author | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-04-09 21:47:51 +0200 |
|---|---|---|
| committer | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2025-05-28 13:25:30 +0200 |
| commit | f8b658a3c4e3d314847be3bb0fda3861a42d4c8c (patch) | |
| tree | 6c8f4880f13cea56907b416cf811b46eaf7ecde2 | |
| parent | 034a705499c4c41c8e910ec4427e9b7affc7f4db (diff) | |
| download | mullvadvpn-f8b658a3c4e3d314847be3bb0fda3861a42d4c8c.tar.xz mullvadvpn-f8b658a3c4e3d314847be3bb0fda3861a42d4c8c.zip | |
Update AppUpgrade error messages
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/main/app-upgrade.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/desktop/packages/mullvad-vpn/src/main/app-upgrade.ts b/desktop/packages/mullvad-vpn/src/main/app-upgrade.ts index fa32e02138..49e9649541 100644 --- a/desktop/packages/mullvad-vpn/src/main/app-upgrade.ts +++ b/desktop/packages/mullvad-vpn/src/main/app-upgrade.ts @@ -28,7 +28,9 @@ export default class AppUpgrade { IpcMainEventChannel.app.notifyUpgradeError?.('START_INSTALLER_FAILED'); const error = e as Error; - log.error(`Could not start installer: ${error.message}`); + log.error( + `An error occurred when starting installer at path: ${verifiedInstallerPath}. Error: ${error.message}`, + ); } }); } @@ -60,7 +62,7 @@ export default class AppUpgrade { private async executeInstaller(verifiedInstallerPath: string) { const errorMessage = await shell.openPath(verifiedInstallerPath); if (errorMessage) { - throw new Error(`An error occurred after starting the installer: ${errorMessage}`); + throw new Error(`An error occurred when starting the installer: ${errorMessage}`); } } @@ -68,7 +70,7 @@ export default class AppUpgrade { try { await fs.access(verifiedInstallerPath, fs.constants.X_OK); } catch { - throw new Error(`An executable installer is not available at path: ${verifiedInstallerPath}`); + throw new Error('The path to the installer is not executable.'); } } } |
