forked from Silverfish/proton-bridge
feat: add ErrNoSuchMessage to pmapi
This commit is contained in:
committed by
Jakub Cuth
parent
d1e63254f2
commit
e1ecc11f38
@ -431,7 +431,7 @@ func (loop *eventLoop) processMessages(eventLog *logrus.Entry, messages []*pmapi
|
||||
msgLog.WithError(err).Warning("Message was not present in DB. Trying fetch...")
|
||||
|
||||
if msg, err = loop.store.fetchMessage(message.ID); err != nil {
|
||||
if err != pmapi.ErrAPINotReachable {
|
||||
if err == pmapi.ErrNoSuchMessage {
|
||||
msgLog.WithError(err).Warn("Skipping message update because message exists neither in local DB nor on API")
|
||||
err = nil
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user