fix create errors and log

This commit is contained in:
dmitrijgulacenkov committed 2020-09-30 17:15:00 +03:00
1 parent c46003d882
commit fcc57459ef
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -79,7 +79,8 @@ func InitProxiesFromConfigs(configs structure.RoutingConfig) error {
for protocol, info := range config.HandlersInfo {
p, err := makeProxy(protocol, info.SkipAuth, info.SkipExistCheck)
if err != nil {
return fmt.Errorf("%v bad dynamic config in service %s with protocol %s", err, config.ModuleName, protocol)
errMsg := fmt.Sprintf("%v bad dynamic config in service %s with protocol %s", err, config.ModuleName, protocol)
return errors.New(errMsg)
}
addressConfig := []structure.AddressConfiguration{{
Port: info.Port,