Improves InstallError.localizedDescription

This commit is contained in:
Riley Testut
2019-06-05 11:02:41 -07:00
parent 13f9f2ea6f
commit d1c8aa8c0e

View File

@@ -26,13 +26,21 @@ extension ALTServerError
}
}
enum InstallError: Error
enum InstallError: LocalizedError
{
case unknown
case cancelled
case invalidApp
case noUDID
case server(ALTServerError)
var errorDescription: String? {
switch self
{
case .server(let error): return error.localizedDescription
default: return nil
}
}
}
struct Server: Equatable