From a5a36e098603b2af06caff363ac1fb185e278b20 Mon Sep 17 00:00:00 2001 From: Daniel Jalkut Date: Wed, 28 Aug 2019 11:40:12 -0400 Subject: [PATCH] Fix for #885: Include 403 status code in list of errors to prompt with 'update credentials' error message, and expand that message to cover the possibility an account is no longer valid with the service, i.e. in the case of an expired Feedbin subscription. --- Frameworks/Account/AccountError.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Frameworks/Account/AccountError.swift b/Frameworks/Account/AccountError.swift index 090cb268d..480871f2b 100644 --- a/Frameworks/Account/AccountError.swift +++ b/Frameworks/Account/AccountError.swift @@ -48,8 +48,8 @@ public enum AccountError: LocalizedError { case .wrappedError(let error, _): switch error { case TransportError.httpError(let status): - if status == 401 { - return NSLocalizedString("Please update your credentials for this account.", comment: "Try later") + if status == 401 || status == 403 { + return NSLocalizedString("Please update your credentials for this account, or ensure that your account with this service is still valid.", comment: "Expired credentials") } else { return NSLocalizedString("Please try again later.", comment: "Try later") }