mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-12 00:03:27 +01:00
Renames ALTLocalizedError.errorFailure to failure
Better matches LocalizedError’s failureReason, recoverySuggestion, and helpAnchor naming.
This commit is contained in:
@@ -46,7 +46,7 @@ extension NSError
|
||||
|
||||
protocol ALTLocalizedError: LocalizedError, CustomNSError
|
||||
{
|
||||
var errorFailure: String? { get }
|
||||
var failure: String? { get }
|
||||
}
|
||||
|
||||
extension ALTLocalizedError
|
||||
@@ -54,7 +54,7 @@ extension ALTLocalizedError
|
||||
var errorUserInfo: [String : Any] {
|
||||
let userInfo = [NSLocalizedDescriptionKey: self.errorDescription,
|
||||
NSLocalizedFailureReasonErrorKey: self.failureReason,
|
||||
NSLocalizedFailureErrorKey: self.errorFailure].compactMapValues { $0 }
|
||||
NSLocalizedFailureErrorKey: self.failure].compactMapValues { $0 }
|
||||
return userInfo
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user