From 23b6623020df3991d8d397851433ab814f138a9e Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Tue, 4 Apr 2023 17:25:18 -0500 Subject: [PATCH] Defines explicit error codes for OperationError.Code cases --- AltStore/Operations/OperationError.swift | 32 ++++++++++++------------ 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/AltStore/Operations/OperationError.swift b/AltStore/Operations/OperationError.swift index c1591afb..405e8e25 100644 --- a/AltStore/Operations/OperationError.swift +++ b/AltStore/Operations/OperationError.swift @@ -18,23 +18,23 @@ extension OperationError // General case unknown = 1000 - case unknownResult - case cancelled - case timedOut + case unknownResult = 1001 + case cancelled = 1002 + case timedOut = 1003 case unableToConnectSideJIT case unableToRespondSideJITDevice case wrongSideJITIP case SideJITIssue // (error: String) - case refreshsidejit - case notAuthenticated - case appNotFound - case unknownUDID - case invalidApp - case invalidParameters - case maximumAppIDLimitReached//((application: ALTApplication, requiredAppIDs: Int, availableAppIDs: Int, nextExpirationDate: Date) - case noSources - case openAppFailed//(name: String) - case missingAppGroup + case refreshsidejit + case notAuthenticated = 1004 + case appNotFound = 1005 + case unknownUDID = 1006 + case invalidApp = 1007 + case invalidParameters = 1008 + case maximumAppIDLimitReached = 1009 + case noSources = 1010 + case openAppFailed = 1011 + case missingAppGroup = 1012 case refreshAppFailed // Connection @@ -45,12 +45,12 @@ extension OperationError case anisetteV3Error//(message: String) case cacheClearError//(errors: [String]) - case forbidden + case forbidden = 1013 /* Connection */ case serverNotFound = 1200 - case connectionFailed - case connectionDropped + case connectionFailed = 1201 + case connectionDropped = 1202 } static let unknownResult: OperationError = .init(code: .unknownResult)