summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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)