Better error log in case of starting SupplierS with no internal RALs connection

This commit is contained in:
DanB
2018-10-17 19:32:03 +02:00
parent b0e86da82b
commit 7f3070d2a7

View File

@@ -648,7 +648,7 @@ func (self *CGRConfig) checkConfigSanity() error {
if self.supplierSCfg != nil && self.supplierSCfg.Enabled {
for _, connCfg := range self.supplierSCfg.RALsConns {
if connCfg.Address != utils.MetaInternal {
return errors.New("Only <*internal> connectivity allowed in SupplierS for now")
return errors.New("Only <*internal> RALs connectivity allowed in SupplierS for now")
}
if connCfg.Address == utils.MetaInternal && !self.RALsEnabled {
return errors.New("RALs not enabled but requested by SupplierS component.")