Replaces ConnectionError.errorDescription with .failureReason

Improves error messages where ConnectionError was the underlying failure, but not the main error.
This commit is contained in:
Riley Testut
2020-05-15 10:55:18 -07:00
parent ea6861b1eb
commit b9b2afa200

View File

@@ -32,7 +32,7 @@ enum ConnectionError: LocalizedError
case connectionFailed case connectionFailed
case connectionDropped case connectionDropped
var errorDescription: String? { var failureReason: String? {
switch self switch self
{ {
case .serverNotFound: return NSLocalizedString("Could not find AltServer.", comment: "") case .serverNotFound: return NSLocalizedString("Could not find AltServer.", comment: "")