Can't -> cannot
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
48552d2663
commit
74e983ea6f
|
@ -7,11 +7,11 @@ import os.log
|
||||||
extension FileManager {
|
extension FileManager {
|
||||||
static var networkExtensionLogFileURL: URL? {
|
static var networkExtensionLogFileURL: URL? {
|
||||||
guard let appGroupId = Bundle.main.object(forInfoDictionaryKey: "com.wireguard.ios.app_group_id") as? String else {
|
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
|
return nil
|
||||||
}
|
}
|
||||||
guard let sharedFolderURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroupId) else {
|
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 nil
|
||||||
}
|
}
|
||||||
return sharedFolderURL.appendingPathComponent("tunnel-log.txt")
|
return sharedFolderURL.appendingPathComponent("tunnel-log.txt")
|
||||||
|
@ -19,11 +19,11 @@ extension FileManager {
|
||||||
|
|
||||||
static var networkExtensionLastErrorFileURL: URL? {
|
static var networkExtensionLastErrorFileURL: URL? {
|
||||||
guard let appGroupId = Bundle.main.object(forInfoDictionaryKey: "com.wireguard.ios.app_group_id") as? String else {
|
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
|
return nil
|
||||||
}
|
}
|
||||||
guard let sharedFolderURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroupId) else {
|
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 nil
|
||||||
}
|
}
|
||||||
return sharedFolderURL.appendingPathComponent("last-error.txt")
|
return sharedFolderURL.appendingPathComponent("last-error.txt")
|
||||||
|
@ -31,7 +31,7 @@ extension FileManager {
|
||||||
|
|
||||||
static var appLogFileURL: URL? {
|
static var appLogFileURL: URL? {
|
||||||
guard let documentDirURL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first else {
|
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 nil
|
||||||
}
|
}
|
||||||
return documentDirURL.appendingPathComponent("app-log.txt")
|
return documentDirURL.appendingPathComponent("app-log.txt")
|
||||||
|
|
|
@ -63,7 +63,7 @@ enum TunnelsManagerError: WireGuardAppError {
|
||||||
var alertText: AlertText {
|
var alertText: AlertText {
|
||||||
switch self {
|
switch self {
|
||||||
case .tunnelNameEmpty:
|
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:
|
case .tunnelAlreadyExistsWithThatName:
|
||||||
return ("Name already exists", "A tunnel with that name already exists")
|
return ("Name already exists", "A tunnel with that name already exists")
|
||||||
case .systemErrorOnListingTunnels:
|
case .systemErrorOnListingTunnels:
|
||||||
|
|
Loading…
Reference in New Issue