diff options
author | Wim <wim@42.be> | 2020-04-19 13:45:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-19 13:45:35 +0200 |
commit | 4d93a774cebec3167717ddb722efb00510b5b67f (patch) | |
tree | 04e0235518409634fb49b2de156c281ec1acd84a /bridge | |
parent | 2595dd30bf3eb014e2da1235b555f0cd88f6bf28 (diff) | |
download | matterbridge-msglm-4d93a774cebec3167717ddb722efb00510b5b67f.tar.gz matterbridge-msglm-4d93a774cebec3167717ddb722efb00510b5b67f.tar.bz2 matterbridge-msglm-4d93a774cebec3167717ddb722efb00510b5b67f.zip |
Ignore non-critical errors (whatsapp). Fixes #1094 (#1100)
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/whatsapp/handlers.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bridge/whatsapp/handlers.go b/bridge/whatsapp/handlers.go index 9a6e9d71..8ea4b077 100644 --- a/bridge/whatsapp/handlers.go +++ b/bridge/whatsapp/handlers.go @@ -23,7 +23,8 @@ Check: // HandleError received from WhatsApp func (b *Bwhatsapp) HandleError(err error) { // ignore received invalid data errors. https://github.com/42wim/matterbridge/issues/843 - if strings.Contains(err.Error(), "error processing data: received invalid data") { + // ignore tag 174 errors. https://github.com/42wim/matterbridge/issues/1094 + if strings.Contains(err.Error(), "error processing data: received invalid data") || strings.Contains(err.Error(), "invalid string with tag 174") { return } |