summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/AddressCache/AddressCacheStore.swift
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2022-09-22 12:09:17 +0200
committerAndrej Mihajlov <and@mullvad.net>2022-09-26 13:44:09 +0200
commitd52fbbdc6f8a3626d2a222543ac51fd07634179a (patch)
tree0e654d17a7711ab98fe1c308927ad209637a4b8d /ios/MullvadVPN/AddressCache/AddressCacheStore.swift
parent2c003f12e01e92b338e6361d38a4f75a47e3e041 (diff)
downloadmullvadvpn-d52fbbdc6f8a3626d2a222543ac51fd07634179a.tar.xz
mullvadvpn-d52fbbdc6f8a3626d2a222543ac51fd07634179a.zip
Replace ChainedError with WrappingError
Diffstat (limited to 'ios/MullvadVPN/AddressCache/AddressCacheStore.swift')
-rw-r--r--ios/MullvadVPN/AddressCache/AddressCacheStore.swift10
1 files changed, 5 insertions, 5 deletions
diff --git a/ios/MullvadVPN/AddressCache/AddressCacheStore.swift b/ios/MullvadVPN/AddressCache/AddressCacheStore.swift
index 94ea5d5850..57e5a9bed8 100644
--- a/ios/MullvadVPN/AddressCache/AddressCacheStore.swift
+++ b/ios/MullvadVPN/AddressCache/AddressCacheStore.swift
@@ -121,7 +121,7 @@ extension AddressCache {
try writeToDisk()
} catch {
logger.error(
- chainedError: AnyChainedError(error),
+ error: error,
message: "Failed to persist address cache after reading it from bundle."
)
}
@@ -170,7 +170,7 @@ extension AddressCache {
try writeToDisk()
} catch {
logger.error(
- chainedError: AnyChainedError(error),
+ error: error,
message: "Failed to write address cache after selecting next endpoint."
)
}
@@ -209,7 +209,7 @@ extension AddressCache {
try writeToDisk()
} catch {
logger.error(
- chainedError: AnyChainedError(error),
+ error: error,
message: "Failed to write address cache after setting new endpoints."
)
}
@@ -238,7 +238,7 @@ extension AddressCache {
return readResult
} catch {
logger.error(
- chainedError: AnyChainedError(error),
+ error: error,
message: "Failed to read address cache from disk. Fallback to pre-bundled cache."
)
@@ -253,7 +253,7 @@ extension AddressCache {
return readResult
} catch {
logger.error(
- chainedError: AnyChainedError(error),
+ error: error,
message: "Failed to read address cache from bundle."
)