diff options
author | Roopesh Chander <roop@roopc.net> | 2018-12-18 15:47:17 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-12-18 15:47:20 +0530 |
commit | 20f8abdf04bb576e9aca5da0d707f75edb8820ad (patch) | |
tree | d358c4edda85c75e9d8d4a18693f316d7f1c8879 /WireGuard | |
parent | Error handling: Add info on the underlying system error to error alerts (diff) | |
download | wireguard-apple-20f8abdf04bb576e9aca5da0d707f75edb8820ad.tar.xz wireguard-apple-20f8abdf04bb576e9aca5da0d707f75edb8820ad.zip |
TunnelsManager: Add periods to end the system error messages
Because they can be part of a multi-sentence message when displayed
in the alert.
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard')
-rw-r--r-- | WireGuard/WireGuard/Tunnel/TunnelErrors.swift | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/WireGuard/WireGuard/Tunnel/TunnelErrors.swift b/WireGuard/WireGuard/Tunnel/TunnelErrors.swift index 889f0a7..a45b4d4 100644 --- a/WireGuard/WireGuard/Tunnel/TunnelErrors.swift +++ b/WireGuard/WireGuard/Tunnel/TunnelErrors.swift @@ -70,17 +70,17 @@ extension Error { if let systemError = self as? NEVPNError { switch systemError { case NEVPNError.configurationInvalid: - return "The configuration is invalid" + return "The configuration is invalid." case NEVPNError.configurationDisabled: - return "The configuration is disabled" + return "The configuration is disabled." case NEVPNError.connectionFailed: - return "The connection failed" + return "The connection failed." case NEVPNError.configurationStale: - return "The configuration is stale" + return "The configuration is stale." case NEVPNError.configurationReadWriteFailed: - return "Reading or writing the configuration failed" + return "Reading or writing the configuration failed." case NEVPNError.configurationUnknown: - return "Unknown system error" + return "Unknown system error." default: return "" } |