Properly conform Client.Error to LocalizedError
This commit is contained in:
parent
6261318df1
commit
6f18d46037
@ -539,7 +539,7 @@ extension Client {
|
||||
self.type = type
|
||||
}
|
||||
|
||||
public var localizedDescription: String {
|
||||
public var errorDescription: String? {
|
||||
switch type {
|
||||
case .networkError(let error):
|
||||
return "Network Error: \(error.localizedDescription)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user