aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-10-31 23:37:46 +0530
committerRoopesh Chander <roop@roopc.net>2018-11-01 01:47:53 +0530
commitdd33d74cafec32311446927ce29eee9f56aa2993 (patch)
treef65840e80909e1fd0ea5f333292ab1ee7fba3bae /WireGuard/WireGuard/UI
parentVPN: TunnelsManager should keep track of tunnel names to prevent duplicate names (diff)
downloadwireguard-apple-dd33d74cafec32311446927ce29eee9f56aa2993.tar.xz
wireguard-apple-dd33d74cafec32311446927ce29eee9f56aa2993.zip
VPN: TunnelsManager: s/TunnelsManagerError/TunnelActivationError/g;
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI')
-rw-r--r--WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift4
-rw-r--r--WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift4
2 files changed, 4 insertions, 4 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift
index 72df738..18f4610 100644
--- a/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift
@@ -152,9 +152,9 @@ extension TunnelDetailTableViewController {
s.tunnelsManager.startActivation(of: s.tunnel) { [weak self] error in
if let error = error {
switch (error) {
- case TunnelsManagerError.noEndpoint:
+ case TunnelActivationError.noEndpoint:
self?.showErrorAlert(title: "Endpoint missing", message: "There must be at least one peer with an endpoint")
- case TunnelsManagerError.dnsResolutionFailed:
+ case TunnelActivationError.dnsResolutionFailed:
self?.showErrorAlert(title: "DNS Failure", message: "One or more endpoint domains could not be resolved")
default:
self?.showErrorAlert(title: "Internal error", message: "The tunnel could not be activated")
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
index 9763b92..75c3687 100644
--- a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
@@ -246,9 +246,9 @@ extension TunnelsListTableViewController {
tunnelsManager.startActivation(of: tunnel) { error in
if let error = error {
switch (error) {
- case TunnelsManagerError.noEndpoint:
+ case TunnelActivationError.noEndpoint:
self?.showErrorAlert(title: "Endpoint missing", message: "There must be at least one peer with an endpoint")
- case TunnelsManagerError.dnsResolutionFailed:
+ case TunnelActivationError.dnsResolutionFailed:
self?.showErrorAlert(title: "DNS Failure", message: "One or more endpoint domains could not be resolved")
default:
self?.showErrorAlert(title: "Internal error", message: "The tunnel could not be activated")