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.

This commit is contained in:
Daniel Jalkut 2019-08-28 11:40:12 -04:00
parent ba9f7ac426
commit a5a36e0986
1 changed files with 2 additions and 2 deletions

View File

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