diff options
author | Wim <wim@42.be> | 2017-03-16 23:01:09 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2017-03-16 23:01:18 +0100 |
commit | 9407aa4600668a3adec0ef9fbf7475a6b95ebdaa (patch) | |
tree | 17aa935bb8593f1d9f85bdc0a275df14cf2ebb32 /bridge/gitter/gitter.go | |
parent | 263b8da37d91c48874a5f8241b1391a4a8a4200d (diff) | |
download | matterbridge-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/gitter/gitter.go')
-rw-r--r-- | bridge/gitter/gitter.go | 3 |
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 { |