aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/Shared/FileManager+Extension.swift
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 /WireGuard/Shared/FileManager+Extension.swift
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>
Diffstat (limited to 'WireGuard/Shared/FileManager+Extension.swift')
-rw-r--r--WireGuard/Shared/FileManager+Extension.swift10
1 files changed, 5 insertions, 5 deletions
diff --git a/WireGuard/Shared/FileManager+Extension.swift b/WireGuard/Shared/FileManager+Extension.swift
index 55713fd..d5691f1 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")