aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-11-01 18:59:58 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-11-01 19:01:43 +0100
commitc2d76b9c450d50e61f6229ea9af7b6b08f92d099 (patch)
treed5ec17fbc13b78769b16ad19b5b07129499e811f /WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift
parentQR code: Fix what happens when an error is shown (diff)
downloadwireguard-apple-c2d76b9c450d50e61f6229ea9af7b6b08f92d099.tar.xz
wireguard-apple-c2d76b9c450d50e61f6229ea9af7b6b08f92d099.zip
Global: fix up strings
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift14
1 files changed, 7 insertions, 7 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift b/WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift
index e7733b3..b9db8e9 100644
--- a/WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift
+++ b/WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift
@@ -10,21 +10,21 @@ class ErrorPresenter {
// TunnelManagementError
case TunnelManagementError.tunnelAlreadyExistsWithThatName:
- return ("Name already in use", "A tunnel with that name already exists. Please pick a different name.")
+ return ("Name already exists", "A tunnel with that name already exists. Please choose a different name.")
case TunnelManagementError.vpnSystemErrorOnAddTunnel:
- return ("Could not create tunnel", "Internal error")
+ return ("Unable to create tunnel", "Internal error")
case TunnelManagementError.vpnSystemErrorOnModifyTunnel:
- return ("Could not modify tunnel", "Internal error")
+ return ("Unable to modify tunnel", "Internal error")
case TunnelManagementError.vpnSystemErrorOnRemoveTunnel:
- return ("Could not remove tunnel", "Internal error")
+ return ("Unable to remove tunnel", "Internal error")
// TunnelActivationError
case TunnelActivationError.noEndpoint:
return ("Endpoint missing", "There must be at least one peer with an endpoint")
case TunnelActivationError.dnsResolutionFailed:
- return ("DNS Failure", "One or more endpoint domains could not be resolved")
+ return ("DNS resolution failure", "One or more endpoint domains could not be resolved")
case TunnelActivationError.tunnelActivationFailed:
- return ("Activation failed", "The tunnel could not be activated because of an internal error")
+ return ("Activation failure", "The tunnel could not be activated due to an internal error")
case TunnelActivationError.attemptingActivationWhenAnotherTunnelIsBusy(let otherTunnelStatus):
let statusString: String = {
switch (otherTunnelStatus) {
@@ -41,7 +41,7 @@ class ErrorPresenter {
fatalError()
}
}()
- return ("Activation failed", "Another tunnel is currently \(statusString). Only one tunnel can be in operation at a time.")
+ return ("Activation failure", "Another tunnel is currently \(statusString). Only one tunnel may be in operation at a time.")
default:
os_log("ErrorPresenter: Error not presented: %{public}@", log: OSLog.default, type: .error, "\(error)")