]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
TunnelsManager: Add periods to end the system error messages
authorRoopesh Chander <roop@roopc.net>
Tue, 18 Dec 2018 10:17:17 +0000 (15:47 +0530)
committerRoopesh Chander <roop@roopc.net>
Tue, 18 Dec 2018 10:17:20 +0000 (15:47 +0530)
Because they can be part of a multi-sentence message when displayed
in the alert.

Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard/Tunnel/TunnelErrors.swift

index 889f0a76f2b21c2a61a7c7bcd746dcb5e5370f2e..a45b4d4443fce0a033547dc0793d8ba31ca56ba9 100644 (file)
@@ -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 ""
             }