summaryrefslogtreecommitdiffstats
path: root/gateway/gateway.go
diff options
context:
space:
mode:
Diffstat (limited to 'gateway/gateway.go')
-rw-r--r--gateway/gateway.go5
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
}