mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-19 11:43:24 +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 unknown
|
||||||
case cancelled
|
case cancelled
|
||||||
case invalidApp
|
case invalidApp
|
||||||
case noUDID
|
case noUDID
|
||||||
case server(ALTServerError)
|
case server(ALTServerError)
|
||||||
|
|
||||||
|
var errorDescription: String? {
|
||||||
|
switch self
|
||||||
|
{
|
||||||
|
case .server(let error): return error.localizedDescription
|
||||||
|
default: return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Server: Equatable
|
struct Server: Equatable
|
||||||
|
|||||||
Reference in New Issue
Block a user