mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-15 00:17:42 +00:00
be selective in what error we return
This commit is contained in:
parent
65f79dc5ae
commit
458382f3b8
1 changed files with 3 additions and 1 deletions
|
@ -85,13 +85,15 @@ func (snw *stuckNotificationsWorker) Process(ctx context.Context, args ...interf
|
|||
|
||||
things, err = rac.MessageInbox(ctx)
|
||||
if err != nil {
|
||||
if err != reddit.ErrRateLimited {
|
||||
if err != reddit.ErrRateLimited && err != reddit.ErrOauthRevoked {
|
||||
snw.logger.Error("failed to fetch last thing via inbox",
|
||||
zap.Error(err),
|
||||
zap.String("account#reddit_account_id", id),
|
||||
zap.String("account#username", account.NormalizedUsername()),
|
||||
)
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue