Merge pull request #903 from danielpunkass/feedbin-anomaly

Fix for #885: Include 403 status code in list of errors to prompt wit…
This commit is contained in:
Maurice Parker 2019-08-28 10:42:09 -05:00 committed by GitHub
commit 28b97fd8d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -48,8 +48,8 @@ public enum AccountError: LocalizedError {
case .wrappedError(let error, _): case .wrappedError(let error, _):
switch error { switch error {
case TransportError.httpError(let status): case TransportError.httpError(let status):
if status == 401 { if status == 401 || status == 403 {
return NSLocalizedString("Please update your credentials for this account.", comment: "Try later") return NSLocalizedString("Please update your credentials for this account, or ensure that your account with this service is still valid.", comment: "Expired credentials")
} else { } else {
return NSLocalizedString("Please try again later.", comment: "Try later") return NSLocalizedString("Please try again later.", comment: "Try later")
} }