aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-12-13 23:17:05 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-12-13 23:17:05 +0100
commit74e983ea6fc9354e4654f19f81738157f6a1c0b1 (patch)
tree953832770f398129060d26117baac78789964c06
parentNE: Communicate last error to app through a shared file (diff)
downloadwireguard-apple-74e983ea6fc9354e4654f19f81738157f6a1c0b1.tar.xz
wireguard-apple-74e983ea6fc9354e4654f19f81738157f6a1c0b1.zip
Can't -> cannot
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--WireGuard/Shared/FileManager+Extension.swift10
-rw-r--r--WireGuard/WireGuard/Tunnel/TunnelsManager.swift2
2 files changed, 6 insertions, 6 deletions
diff --git a/WireGuard/Shared/FileManager+Extension.swift b/WireGuard/Shared/FileManager+Extension.swift
index 55713fd2..d5691f10 100644
--- a/WireGuard/Shared/FileManager+Extension.swift
+++ b/WireGuard/Shared/FileManager+Extension.swift
@@ -7,11 +7,11 @@ import os.log
extension FileManager {
static var networkExtensionLogFileURL: URL? {
guard let appGroupId = Bundle.main.object(forInfoDictionaryKey: "com.wireguard.ios.app_group_id") as? String else {
- os_log("Can't obtain app group id from bundle", log: OSLog.default, type: .error)
+ os_log("Cannot obtain app group id from bundle", log: OSLog.default, type: .error)
return nil
}
guard let sharedFolderURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroupId) else {
- os_log("Can't obtain shared folder URL", log: OSLog.default, type: .error)
+ os_log("Cannot obtain shared folder URL", log: OSLog.default, type: .error)
return nil
}
return sharedFolderURL.appendingPathComponent("tunnel-log.txt")
@@ -19,11 +19,11 @@ extension FileManager {
static var networkExtensionLastErrorFileURL: URL? {
guard let appGroupId = Bundle.main.object(forInfoDictionaryKey: "com.wireguard.ios.app_group_id") as? String else {
- os_log("Can't obtain app group id from bundle", log: OSLog.default, type: .error)
+ os_log("Cannot obtain app group id from bundle", log: OSLog.default, type: .error)
return nil
}
guard let sharedFolderURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroupId) else {
- os_log("Can't obtain shared folder URL", log: OSLog.default, type: .error)
+ os_log("Cannot obtain shared folder URL", log: OSLog.default, type: .error)
return nil
}
return sharedFolderURL.appendingPathComponent("last-error.txt")
@@ -31,7 +31,7 @@ extension FileManager {
static var appLogFileURL: URL? {
guard let documentDirURL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first else {
- os_log("Can't obtain app documents folder URL", log: OSLog.default, type: .error)
+ os_log("Cannot obtain app documents folder URL", log: OSLog.default, type: .error)
return nil
}
return documentDirURL.appendingPathComponent("app-log.txt")
diff --git a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
index a455ac26..64e65aea 100644
--- a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
+++ b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
@@ -63,7 +63,7 @@ enum TunnelsManagerError: WireGuardAppError {
var alertText: AlertText {
switch self {
case .tunnelNameEmpty:
- return ("No name provided", "Can't create tunnel with an empty name")
+ return ("No name provided", "Cannot create tunnel with an empty name")
case .tunnelAlreadyExistsWithThatName:
return ("Name already exists", "A tunnel with that name already exists")
case .systemErrorOnListingTunnels: