summaryrefslogtreecommitdiffhomepage
path: root/ios
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2021-09-14 13:17:52 +0200
committerAndrej Mihajlov <and@mullvad.net>2021-09-15 11:03:49 +0200
commit128e7601092b5aeada2463e32d3a8fdde4c8af41 (patch)
tree5536ea27a32e9c79a061d2c20f0afd16b0fe4125 /ios
parentd2987ab97492787acf84f8aff589101cd8219e0f (diff)
downloadmullvadvpn-128e7601092b5aeada2463e32d3a8fdde4c8af41.tar.xz
mullvadvpn-128e7601092b5aeada2463e32d3a8fdde4c8af41.zip
AppStoreReceipt: handle fileReadNoSuchError
Diffstat (limited to 'ios')
-rw-r--r--ios/MullvadVPN/AppStoreReceipt.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/ios/MullvadVPN/AppStoreReceipt.swift b/ios/MullvadVPN/AppStoreReceipt.swift
index 200d6ba1df..d39d58cf25 100644
--- a/ios/MullvadVPN/AppStoreReceipt.swift
+++ b/ios/MullvadVPN/AppStoreReceipt.swift
@@ -66,7 +66,7 @@ enum AppStoreReceipt {
return Result { try Data(contentsOf: appStoreReceiptURL) }
.mapError { (error) -> Error in
- if let ioError = error as? CocoaError, ioError.code == .fileNoSuchFile {
+ if let cocoaError = error as? CocoaError, cocoaError.code == .fileReadNoSuchFile || cocoaError.code == .fileNoSuchFile {
return .doesNotExist
} else {
return .io(error)