From 61b788a1de8ed071b568710ed2b330ac63354e6b Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Thu, 16 Jan 2020 12:17:47 -0700 Subject: [PATCH] Provide user friendly account error for 403 status code (FORBIDDEN) --- Frameworks/Account/AccountError.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frameworks/Account/AccountError.swift b/Frameworks/Account/AccountError.swift index 2c7fdb720..41b19fac9 100644 --- a/Frameworks/Account/AccountError.swift +++ b/Frameworks/Account/AccountError.swift @@ -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 {