summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2022-02-16 11:31:25 +0100
committerAndrej Mihajlov <and@mullvad.net>2022-02-22 11:24:14 +0100
commit143a58a5b5dd5419be8bd84569c571603ecd73a8 (patch)
tree909e7d16ae25a04561db6a0dd110ece9026be9f9
parentfdc777690619b79c76a0b6fb6d07ad1a6d3358fe (diff)
downloadmullvadvpn-143a58a5b5dd5419be8bd84569c571603ecd73a8.tar.xz
mullvadvpn-143a58a5b5dd5419be8bd84569c571603ecd73a8.zip
Add period at the end of error descriptions
-rw-r--r--ios/MullvadVPN/AppStoreReceipt.swift6
-rw-r--r--ios/MullvadVPN/ConsolidatedApplicationLog.swift4
-rw-r--r--ios/MullvadVPN/Logging/LogRotation.swift4
-rw-r--r--ios/MullvadVPN/REST/RESTError.swift10
-rw-r--r--ios/MullvadVPN/RelayCache/RelayCacheError.swift16
-rw-r--r--ios/MullvadVPN/TunnelIPC/TunnelIPCError.swift8
-rw-r--r--ios/MullvadVPN/TunnelManager/TunnelManagerError.swift40
7 files changed, 44 insertions, 44 deletions
diff --git a/ios/MullvadVPN/AppStoreReceipt.swift b/ios/MullvadVPN/AppStoreReceipt.swift
index d39d58cf25..995c17e719 100644
--- a/ios/MullvadVPN/AppStoreReceipt.swift
+++ b/ios/MullvadVPN/AppStoreReceipt.swift
@@ -23,11 +23,11 @@ enum AppStoreReceipt {
var errorDescription: String? {
switch self {
case .doesNotExist:
- return "AppStore receipt file does not exist on disk"
+ return "AppStore receipt file does not exist on disk."
case .io:
- return "Read error"
+ return "Read error."
case .refresh:
- return "Receipt refresh error"
+ return "Receipt refresh error."
}
}
}
diff --git a/ios/MullvadVPN/ConsolidatedApplicationLog.swift b/ios/MullvadVPN/ConsolidatedApplicationLog.swift
index e994b4237e..e31b6b6371 100644
--- a/ios/MullvadVPN/ConsolidatedApplicationLog.swift
+++ b/ios/MullvadVPN/ConsolidatedApplicationLog.swift
@@ -35,9 +35,9 @@ class ConsolidatedApplicationLog: TextOutputStreamable {
var errorDescription: String? {
switch self {
case .logFileDoesNotExist(let path):
- return "Log file does not exist: \(path)"
+ return "Log file does not exist: \(path)."
case .invalidLogFileURL(let url):
- return "Invalid log file URL: \(url.absoluteString)"
+ return "Invalid log file URL: \(url.absoluteString)."
}
}
}
diff --git a/ios/MullvadVPN/Logging/LogRotation.swift b/ios/MullvadVPN/Logging/LogRotation.swift
index fdc66c20b6..696f7c4a41 100644
--- a/ios/MullvadVPN/Logging/LogRotation.swift
+++ b/ios/MullvadVPN/Logging/LogRotation.swift
@@ -17,9 +17,9 @@ enum LogRotation {
var errorDescription: String? {
switch self {
case .noSourceLogFile:
- return "Source log file does not exist"
+ return "Source log file does not exist."
case .moveSourceLogFile:
- return "Failure to move the source log file to backup"
+ return "Failure to move the source log file to backup."
}
}
}
diff --git a/ios/MullvadVPN/REST/RESTError.swift b/ios/MullvadVPN/REST/RESTError.swift
index 110eafbfcd..6d13a6e6f9 100644
--- a/ios/MullvadVPN/REST/RESTError.swift
+++ b/ios/MullvadVPN/REST/RESTError.swift
@@ -30,15 +30,15 @@ extension REST {
var errorDescription: String? {
switch self {
case .encodePayload:
- return "Failure to encode the payload"
+ return "Failure to encode the payload."
case .network:
- return "Network error"
+ return "Network error."
case .server:
- return "Server error"
+ return "Server error."
case .decodeErrorResponse:
- return "Failure to decode error response from server"
+ return "Failure to decode error response from server."
case .decodeSuccessResponse:
- return "Failure to decode success response from server"
+ return "Failure to decode success response from server."
}
}
}
diff --git a/ios/MullvadVPN/RelayCache/RelayCacheError.swift b/ios/MullvadVPN/RelayCache/RelayCacheError.swift
index c161ee3937..9e18643a21 100644
--- a/ios/MullvadVPN/RelayCache/RelayCacheError.swift
+++ b/ios/MullvadVPN/RelayCache/RelayCacheError.swift
@@ -24,21 +24,21 @@ extension RelayCache {
var errorDescription: String? {
switch self {
case .encodeCache:
- return "Encode cache error"
+ return "Encode cache error."
case .decodeCache:
- return "Decode cache error"
+ return "Decode cache error."
case .readCache:
- return "Read cache error"
+ return "Read cache error."
case .readPrebundledRelays:
- return "Read pre-bundled relays error"
+ return "Read pre-bundled relays error."
case .decodePrebundledRelays:
- return "Decode pre-bundled relays error"
+ return "Decode pre-bundled relays error."
case .writeCache:
- return "Write cache error"
+ return "Write cache error."
case .rest:
- return "REST error"
+ return "REST error."
case .backgroundTaskScheduler:
- return "Background task scheduler error"
+ return "Background task scheduler error."
}
}
}
diff --git a/ios/MullvadVPN/TunnelIPC/TunnelIPCError.swift b/ios/MullvadVPN/TunnelIPC/TunnelIPCError.swift
index b2af509c80..29cd73c4e4 100644
--- a/ios/MullvadVPN/TunnelIPC/TunnelIPCError.swift
+++ b/ios/MullvadVPN/TunnelIPC/TunnelIPCError.swift
@@ -28,13 +28,13 @@ extension TunnelIPC {
var errorDescription: String? {
switch self {
case .encoding:
- return "Encoding failure"
+ return "Encoding failure."
case .decoding:
- return "Decoding failure"
+ return "Decoding failure."
case .send:
- return "Send failure"
+ return "Send failure."
case .nilResponse:
- return "Unexpected nil response from the tunnel"
+ return "Unexpected nil response from the tunnel."
}
}
}
diff --git a/ios/MullvadVPN/TunnelManager/TunnelManagerError.swift b/ios/MullvadVPN/TunnelManager/TunnelManagerError.swift
index e60e3a3dd5..4f0b346417 100644
--- a/ios/MullvadVPN/TunnelManager/TunnelManagerError.swift
+++ b/ios/MullvadVPN/TunnelManager/TunnelManagerError.swift
@@ -75,45 +75,45 @@ extension TunnelManager {
var errorDescription: String? {
switch self {
case .unsetAccount:
- return "Account is unset"
+ return "Account is unset."
case .startVPNTunnel:
- return "Failed to start the VPN tunnel"
+ return "Failed to start the VPN tunnel."
case .loadAllVPNConfigurations:
- return "Failed to load the system VPN configurations"
+ return "Failed to load the system VPN configurations."
case .saveVPNConfiguration:
- return "Failed to save the system VPN configuration"
+ return "Failed to save the system VPN configuration."
case .reloadVPNConfiguration:
- return "Failed to reload the system VPN configuration"
+ return "Failed to reload the system VPN configuration."
case .removeVPNConfiguration:
- return "Failed to remove the system VPN configuration"
+ return "Failed to remove the system VPN configuration."
case .removeInconsistentVPNConfiguration:
- return "Failed to remove the inconsistent VPN tunnel"
+ return "Failed to remove the inconsistent VPN tunnel."
case .readTunnelSettings:
- return "Failed to read the tunnel settings"
+ return "Failed to read the tunnel settings."
case .readRelays:
- return "Failed to read relays"
+ return "Failed to read relays."
case .cannotSatisfyRelayConstraints:
- return "Failed to satisfy the relay constraints"
+ return "Failed to satisfy the relay constraints."
case .addTunnelSettings:
- return "Failed to add the tunnel settings"
+ return "Failed to add the tunnel settings."
case .updateTunnelSettings:
- return "Failed to update the tunnel settings"
+ return "Failed to update the tunnel settings."
case .removeTunnelSettings:
- return "Failed to remove the tunnel settings"
+ return "Failed to remove the tunnel settings."
case .migrateTunnelSettings:
- return "Failed to migrate the tunnel settings"
+ return "Failed to migrate the tunnel settings."
case .obtainPersistentKeychainReference:
- return "Failed to obtain the persistent keychain reference"
+ return "Failed to obtain the persistent keychain reference."
case .pushWireguardKey:
- return "Failed to push the WireGuard key to server"
+ return "Failed to push the WireGuard key to server."
case .replaceWireguardKey:
- return "Failed to replace the WireGuard key on server"
+ return "Failed to replace the WireGuard key on server."
case .removeWireguardKey:
- return "Failed to remove the WireGuard key from server"
+ return "Failed to remove the WireGuard key from server."
case .backgroundTaskScheduler:
- return "Failed to schedule background task"
+ return "Failed to schedule background task."
case .reloadTunnel:
- return "Failed to reload tunnel"
+ return "Failed to reload tunnel."
}
}
}