diff options
author | Wim <wim@42.be> | 2016-10-08 21:57:03 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2016-10-08 21:57:03 +0200 |
commit | db0e4ba8c5d290160411e7be889609bb41bef174 (patch) | |
tree | cd1026a1298fe7715cff83a401cd94c5f1269950 /gateway/samechannel/samechannel.go | |
parent | 2d6ed51d9407c2f6d8c065478d536ec3a019dade (diff) | |
download | matterbridge-msglm-db0e4ba8c5d290160411e7be889609bb41bef174.tar.gz matterbridge-msglm-db0e4ba8c5d290160411e7be889609bb41bef174.tar.bz2 matterbridge-msglm-db0e4ba8c5d290160411e7be889609bb41bef174.zip |
Add error message about non-existing channels (slack)
Diffstat (limited to 'gateway/samechannel/samechannel.go')
-rw-r--r-- | gateway/samechannel/samechannel.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gateway/samechannel/samechannel.go b/gateway/samechannel/samechannel.go index c7b3d624..5cdd59ae 100644 --- a/gateway/samechannel/samechannel.go +++ b/gateway/samechannel/samechannel.go @@ -60,7 +60,10 @@ func (gw *SameChannelGateway) handleMessage(msg config.Message, dest bridge.Brid } gw.modifyMessage(&msg, dest) log.Debugf("Sending %#v from %s to %s", msg, msg.FullOrigin, dest.FullOrigin()) - dest.Send(msg) + err := dest.Send(msg) + if err != nil { + log.Error(err) + } } func setNickFormat(msg *config.Message, format string) { |