summaryrefslogtreecommitdiffstats
path: root/bridge/slack
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-02-15 18:05:10 +0100
committerWim <wim@42.be>2019-02-15 18:05:10 +0100
commit077b818d82a98855d5577f4f9de5d2b2d2cc6a50 (patch)
tree11f792f62347b460367a4a863f0871f2ed2d8bd9 /bridge/slack
parent5af1d8005509e42102b2e2c2319b1fd754bb46f3 (diff)
downloadmatterbridge-msglm-077b818d82a98855d5577f4f9de5d2b2d2cc6a50.tar.gz
matterbridge-msglm-077b818d82a98855d5577f4f9de5d2b2d2cc6a50.tar.bz2
matterbridge-msglm-077b818d82a98855d5577f4f9de5d2b2d2cc6a50.zip
Add extra debug of SubMessage to empty messages error (slack). #709
Diffstat (limited to 'bridge/slack')
-rw-r--r--bridge/slack/handlers.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/bridge/slack/handlers.go b/bridge/slack/handlers.go
index e013b830..5cfcc42b 100644
--- a/bridge/slack/handlers.go
+++ b/bridge/slack/handlers.go
@@ -192,6 +192,9 @@ func (b *Bslack) handleMessageEvent(ev *slack.MessageEvent) (*config.Message, er
// This is probably a webhook we couldn't resolve.
return nil, fmt.Errorf("message handling resulted in an empty bot message (probably an incoming webhook we couldn't resolve): %#v", ev)
}
+ if ev.SubMessage != nil {
+ return nil, fmt.Errorf("message handling resulted in an empty message: %#v with submessage %#v", ev, ev.SubMessage)
+ }
return nil, fmt.Errorf("message handling resulted in an empty message: %#v", ev)
}
return rmsg, nil