4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-07-16 02:08:55 +00:00

Add error message about non-existing channels (slack)

This commit is contained in:
Wim
2016-10-08 21:57:03 +02:00
parent 2d6ed51d94
commit db0e4ba8c5
3 changed files with 19 additions and 7 deletions

View File

@ -1,6 +1,7 @@
package gateway
import (
"fmt"
"github.com/42wim/matterbridge/bridge"
"github.com/42wim/matterbridge/bridge/config"
log "github.com/Sirupsen/logrus"
@ -109,7 +110,10 @@ func (gw *Gateway) handleMessage(msg config.Message, dest bridge.Bridge) {
}
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 {
fmt.Println(err)
}
}
}