Provide user friendly account error for 403 status code (FORBIDDEN)

This commit is contained in:
Maurice Parker 2020-01-16 12:17:47 -07:00
parent f7017aaed5
commit 61b788a1de
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ public enum AccountError: LocalizedError {
case .wrappedError(let error, let account):
switch error {
case TransportError.httpError(let status):
if status == 401 {
if status == 401 || status == 403 {
let localizedText = NSLocalizedString("Your “%@” credentials are invalid or expired.", comment: "Invalid or expired")
return NSString.localizedStringWithFormat(localizedText as NSString, account.nameForDisplay) as String
} else {