Renames ALTLocalizedError.errorFailure to failure

Better matches LocalizedError’s failureReason, recoverySuggestion, and helpAnchor naming.
This commit is contained in:
Riley Testut
2021-02-26 15:25:10 -06:00
parent 2354f85998
commit acc202031c
3 changed files with 6 additions and 6 deletions

View File

@@ -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
}
}