aboutsummaryrefslogtreecommitdiffstats
path: root/Sources/WireGuardApp/Tunnel/TunnelErrors.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Sources/WireGuardApp/Tunnel/TunnelErrors.swift')
-rw-r--r--Sources/WireGuardApp/Tunnel/TunnelErrors.swift8
1 files changed, 4 insertions, 4 deletions
diff --git a/Sources/WireGuardApp/Tunnel/TunnelErrors.swift b/Sources/WireGuardApp/Tunnel/TunnelErrors.swift
index 99c90d0..7031646 100644
--- a/Sources/WireGuardApp/Tunnel/TunnelErrors.swift
+++ b/Sources/WireGuardApp/Tunnel/TunnelErrors.swift
@@ -56,10 +56,10 @@ enum TunnelsManagerActivationError: WireGuardAppError {
var alertText: AlertText {
switch self {
- case .activationFailed(let wasOnDemandEnabled):
- return (tr("alertTunnelActivationFailureTitle"), tr("alertTunnelActivationFailureMessage") + (wasOnDemandEnabled ? tr("alertTunnelActivationFailureOnDemandAddendum") : ""))
- case .activationFailedWithExtensionError(let title, let message, let wasOnDemandEnabled):
- return (title, message + (wasOnDemandEnabled ? tr("alertTunnelActivationFailureOnDemandAddendum") : ""))
+ case .activationFailed:
+ return (tr("alertTunnelActivationFailureTitle"), tr("alertTunnelActivationFailureMessage"))
+ case .activationFailedWithExtensionError(let title, let message, _):
+ return (title, message)
}
}
}