diff options
| author | David Lönnhager <david.l@mullvad.net> | 2024-05-24 13:50:11 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2024-05-29 12:55:01 +0200 |
| commit | 461bb179af039b2ab9622f8df2c2bffd09a21b77 (patch) | |
| tree | 38f67fdda816084a54d888d3f4df0a5d3754e85a /gui/src/shared | |
| parent | 2b04fed8d6a486d97af47f1add45b0eeb1071db8 (diff) | |
| download | mullvadvpn-461bb179af039b2ab9622f8df2c2bffd09a21b77.tar.xz mullvadvpn-461bb179af039b2ab9622f8df2c2bffd09a21b77.zip | |
Add error state cause for full disk permissions error
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/notifications/error.ts | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/gui/src/shared/notifications/error.ts b/gui/src/shared/notifications/error.ts index 673d6cea28..1d36b7e1de 100644 --- a/gui/src/shared/notifications/error.ts +++ b/gui/src/shared/notifications/error.ts @@ -183,10 +183,18 @@ function getMessage(errorState: ErrorState): string { 'Your device is offline. The tunnel will automatically connect once your device is back online.', ); case ErrorStateCause.splitTunnelError: - return messages.pgettext( - 'notifications', - 'Unable to communicate with Mullvad kernel driver. Try reconnecting or send a problem report.', - ); + switch (process.platform ?? window.env.platform) { + case 'darwin': + return messages.pgettext( + 'notifications', + 'Failed to enable split tunneling. Please try again or disable it.', + ); + default: + return messages.pgettext( + 'notifications', + 'Unable to communicate with Mullvad kernel driver. Try reconnecting or send a problem report.', + ); + } } } } @@ -265,6 +273,7 @@ function getActions(errorState: ErrorState): InAppNotificationAction | void { }, }; } else if (errorState.cause === ErrorStateCause.splitTunnelError) { + // TODO: macos: handle this and full disk access error return { type: 'troubleshoot-dialog', troubleshoot: { |
