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