diff options
author | Wim <wim@42.be> | 2017-03-16 23:05:11 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2017-03-16 23:05:11 +0100 |
commit | fd8cfb11fb3d5e84ab44b14474b3421a1d49d1b1 (patch) | |
tree | 06cacca06ae01f774a2345c734b2098fdda9e031 /gateway/gateway.go | |
parent | 9407aa4600668a3adec0ef9fbf7475a6b95ebdaa (diff) | |
download | matterbridge-msglm-fd8cfb11fb3d5e84ab44b14474b3421a1d49d1b1.tar.gz matterbridge-msglm-fd8cfb11fb3d5e84ab44b14474b3421a1d49d1b1.tar.bz2 matterbridge-msglm-fd8cfb11fb3d5e84ab44b14474b3421a1d49d1b1.zip |
Fail when bridge is unable to join a channel (general)
Diffstat (limited to 'gateway/gateway.go')
-rw-r--r-- | gateway/gateway.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go index 254fb89f..1f5c361f 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -48,7 +48,10 @@ func (gw *Gateway) AddBridge(cfg *config.Bridge) error { if err != nil { return fmt.Errorf("Bridge %s failed to start: %v", br.Account, err) } - br.JoinChannels() + err = br.JoinChannels() + if err != nil { + return fmt.Errorf("Bridge %s failed to join channel: %v", br.Account, err) + } return nil } |