[AltServer] Adds ALTServerConnectionError to wrap libimobiledevice errors

This commit is contained in:
Riley Testut
2021-05-20 11:46:38 -07:00
parent bc2dae1b21
commit c97acfc76c
6 changed files with 242 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ public extension ALTServerError
switch error
{
case let error as ALTServerError: self = error
case let error as ALTServerConnectionError: self = ALTServerError(.connectionFailed, underlyingError: error)
case is DecodingError: self = ALTServerError(.invalidRequest, underlyingError: error)
case is EncodingError: self = ALTServerError(.invalidResponse, underlyingError: error)
case let error as NSError: