aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-11-03 03:40:23 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-11-03 03:43:09 +0100
commit007d6d9c58c4e9e425fd791f7a41d9b14231e210 (patch)
treea08de8650f30937b2ebd8ccf26b7ccd63e331380 /WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift
parentGlobal: no periods at the end of error messages (diff)
downloadwireguard-apple-007d6d9c58c4e9e425fd791f7a41d9b14231e210.tar.xz
wireguard-apple-007d6d9c58c4e9e425fd791f7a41d9b14231e210.zip
TunnelsManager: get rid of index management
No need for premature optimization. There aren't that many tunnels most of the time, and calling sort on a partially sorted array is fast. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift')
-rw-r--r--WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift2
1 files changed, 2 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift b/WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift
index cb63867..a73c057 100644
--- a/WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift
+++ b/WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift
@@ -11,6 +11,8 @@ class ErrorPresenter {
// TunnelManagementError
case TunnelManagementError.tunnelAlreadyExistsWithThatName:
return ("Name already exists", "A tunnel with that name already exists")
+ case TunnelManagementError.tunnelInvalidName:
+ return ("Name already exists", "The tunnel name is invalid")
case TunnelManagementError.vpnSystemErrorOnAddTunnel:
return ("Unable to create tunnel", "Internal error")
case TunnelManagementError.vpnSystemErrorOnModifyTunnel: