summaryrefslogtreecommitdiffhomepage
path: root/gui/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/shared')
-rw-r--r--gui/src/shared/daemon-rpc-types.ts2
-rw-r--r--gui/src/shared/notifications/error.ts10
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',