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>
This commit is contained in:
Roopesh Chander
2018-12-18 15:47:17 +05:30
parent 2582ddd6f6
commit 20f8abdf04
@@ -70,17 +70,17 @@ extension Error {
if let systemError = self as? NEVPNError { if let systemError = self as? NEVPNError {
switch systemError { switch systemError {
case NEVPNError.configurationInvalid: case NEVPNError.configurationInvalid:
return "The configuration is invalid" return "The configuration is invalid."
case NEVPNError.configurationDisabled: case NEVPNError.configurationDisabled:
return "The configuration is disabled" return "The configuration is disabled."
case NEVPNError.connectionFailed: case NEVPNError.connectionFailed:
return "The connection failed" return "The connection failed."
case NEVPNError.configurationStale: case NEVPNError.configurationStale:
return "The configuration is stale" return "The configuration is stale."
case NEVPNError.configurationReadWriteFailed: case NEVPNError.configurationReadWriteFailed:
return "Reading or writing the configuration failed" return "Reading or writing the configuration failed."
case NEVPNError.configurationUnknown: case NEVPNError.configurationUnknown:
return "Unknown system error" return "Unknown system error."
default: default:
return "" return ""
} }