summaryrefslogtreecommitdiffhomepage
path: root/gui/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/main')
-rw-r--r--gui/src/main/notification-controller.ts18
1 files changed, 15 insertions, 3 deletions
diff --git a/gui/src/main/notification-controller.ts b/gui/src/main/notification-controller.ts
index c0371114e5..41aca7ffea 100644
--- a/gui/src/main/notification-controller.ts
+++ b/gui/src/main/notification-controller.ts
@@ -79,9 +79,21 @@ export default class NotificationController {
break;
case 'error':
if (tunnelState.details.isBlocking) {
- this.showTunnelStateNotification(
- messages.pgettext('notifications', 'Blocked all connections'),
- );
+ if (
+ tunnelState.details.cause.reason === 'tunnel_parameter_error' &&
+ tunnelState.details.cause.details === 'no_wireguard_key'
+ ) {
+ this.showTunnelStateNotification(
+ messages.pgettext(
+ 'notifications',
+ 'Blocking internet: Valid WireGuard key is missing',
+ ),
+ );
+ } else {
+ this.showTunnelStateNotification(
+ messages.pgettext('notifications', 'Blocking internet'),
+ );
+ }
} else {
this.showTunnelStateNotification(
messages.pgettext('notifications', 'Critical error (your attention is required)'),