From 2d6ed51d9407c2f6d8c065478d536ec3a019dade Mon Sep 17 00:00:00 2001 From: Wim Date: Mon, 3 Oct 2016 09:22:59 +0200 Subject: Bail out on samechannel gateway when a bridge fails to start --- gateway/gateway.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gateway/gateway.go') diff --git a/gateway/gateway.go b/gateway/gateway.go index 2180f930..fefbaeb2 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -38,7 +38,7 @@ func New(cfg *config.Config, gateway *config.Gateway) error { for _, br := range gw.Bridges { err := br.Connect() if err != nil { - log.Fatalf("Bridge %s failed to start. Exiting", br.FullOrigin()) + log.Fatalf("Bridge %s failed to start: %v", br.FullOrigin(), err) } for _, channel := range append(gw.ChannelsOut[br.FullOrigin()], gw.ChannelsIn[br.FullOrigin()]...) { if exists[br.FullOrigin()+channel] { -- cgit v1.2.3