diff options
| author | Emīls <emils@mullvad.net> | 2021-11-30 09:46:40 +0000 |
|---|---|---|
| committer | Emīls <emils@mullvad.net> | 2021-12-10 09:58:51 +0000 |
| commit | 89d7d9f386fb41a351bf19d8097df4f21035d7dd (patch) | |
| tree | 89ed081a423459f4c9ef6a5e6b058b1aa849ce2c /gui/src/shared | |
| parent | 77c3edbb6e02065259b26a60c4554116f1fd8dfb (diff) | |
| download | mullvadvpn-89d7d9f386fb41a351bf19d8097df4f21035d7dd.tar.xz mullvadvpn-89d7d9f386fb41a351bf19d8097df4f21035d7dd.zip | |
Update GUI for new error state causes
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/daemon-rpc-types.ts | 2 | ||||
| -rw-r--r-- | gui/src/shared/notifications/error.ts | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gui/src/shared/daemon-rpc-types.ts b/gui/src/shared/daemon-rpc-types.ts index 8e42147f43..ebe177c69b 100644 --- a/gui/src/shared/daemon-rpc-types.ts +++ b/gui/src/shared/daemon-rpc-types.ts @@ -40,6 +40,8 @@ export type ErrorStateCause = | 'set_dns_error' | 'start_tunnel_error' | 'is_offline' + | 'custom_resolver_error' + | 'read_system_dns_config' | 'split_tunnel_error'; } | { reason: 'set_firewall_policy_error'; details: FirewallPolicyError } diff --git a/gui/src/shared/notifications/error.ts b/gui/src/shared/notifications/error.ts index 066c9c333e..73de3a9f90 100644 --- a/gui/src/shared/notifications/error.ts +++ b/gui/src/shared/notifications/error.ts @@ -138,6 +138,16 @@ function getMessage(errorDetails: IErrorState, accountExpiry?: string): string { 'notifications', "Your device is offline. Try connecting when it's back online.", ); + case 'custom_resolver_error': + // TODO: Figure out a better error message to show to users + return messages.pgettext( + 'notifications', + "Failed to start custom resolver, check if there's a service running on port 53.", + ); + case 'read_system_dns_config': + // TODO: Figure out a better error message to show to users + return messages.pgettext('notifications', 'Failed to read system DNS configuration.'); + case 'split_tunnel_error': return messages.pgettext( 'notifications', |
