diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-11-03 03:40:23 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-11-03 03:43:09 +0100 |
commit | 007d6d9c58c4e9e425fd791f7a41d9b14231e210 (patch) | |
tree | a08de8650f30937b2ebd8ccf26b7ccd63e331380 /WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift | |
parent | Global: no periods at the end of error messages (diff) | |
download | wireguard-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.swift | 2 |
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: |