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 {
|
||||
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")
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue