mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Improves InstallError.localizedDescription
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user