user: catch 40002 responses

This commit is contained in:
Tulir Asokan
2024-11-13 15:15:36 +02:00
parent 449c9264d8
commit 024577d822
3 changed files with 23 additions and 0 deletions

View File

@@ -151,6 +151,9 @@ func (portal *Portal) collectBackfillMessages(log zerolog.Logger, source *User,
func (portal *Portal) backfillLimited(log zerolog.Logger, source *User, limit int, after string, thread *Thread) {
messages, foundAll, err := portal.collectBackfillMessages(log, source, limit, after, thread)
if err != nil {
if source.handlePossible40002(err) {
panic(err)
}
log.Err(err).Msg("Error collecting messages to forward backfill")
return
}