Fail if:
* we don't have any gateways configured
* we have gateways configured but with non-existing bridge configuration
* we have gateways configured without any configuration
returnfmt.Errorf("no [[gateway]] configured. See https://github.com/42wim/matterbridge/wiki/How-to-create-your-config for more info")
}
for_,gw:=ranger.Gateways{
r.logger.Infof("Parsing gateway %s",gw.Name)
iflen(gw.Bridges)==0{
returnfmt.Errorf("no bridges configured for gateway %s. See https://github.com/42wim/matterbridge/wiki/How-to-create-your-config for more info",gw.Name)