summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-03-16 23:01:09 +0100
committerWim <wim@42.be>2017-03-16 23:01:18 +0100
commit9407aa4600668a3adec0ef9fbf7475a6b95ebdaa (patch)
tree17aa935bb8593f1d9f85bdc0a275df14cf2ebb32 /bridge
parent263b8da37d91c48874a5f8241b1391a4a8a4200d (diff)
downloadmatterbridge-msglm-9407aa4600668a3adec0ef9fbf7475a6b95ebdaa.tar.gz
matterbridge-msglm-9407aa4600668a3adec0ef9fbf7475a6b95ebdaa.tar.bz2
matterbridge-msglm-9407aa4600668a3adec0ef9fbf7475a6b95ebdaa.zip
Check if room exists when joining channel (gitter). Closes #135
Diffstat (limited to 'bridge')
-rw-r--r--bridge/gitter/gitter.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/bridge/gitter/gitter.go b/bridge/gitter/gitter.go
index d1f4b401..ae9ef021 100644
--- a/bridge/gitter/gitter.go
+++ b/bridge/gitter/gitter.go
@@ -1,6 +1,7 @@
package bgitter
import (
+ "fmt"
"github.com/42wim/matterbridge/bridge/config"
log "github.com/Sirupsen/logrus"
"github.com/sromku/go-gitter"
@@ -54,7 +55,7 @@ func (b *Bgitter) JoinChannel(channel string) error {
room := channel
roomID := b.getRoomID(room)
if roomID == "" {
- return nil
+ return fmt.Errorf("Could not find roomID for %v. Please create the room on gitter.im", channel)
}
user, err := b.c.GetUser()
if err != nil {