Nicer logging for config failing

This commit is contained in:
DanB
2017-11-12 17:46:35 +01:00
parent bdbabf3a24
commit ffc7b3d0eb

View File

@@ -739,7 +739,7 @@ func main() {
// Init config
cfg, err = config.NewCGRConfigFromFolder(*cfgDir)
if err != nil {
log.Fatalf("Could not parse config: ", err)
log.Fatalf("Could not parse config: <%s>", err.Error())
return
}
config.SetCgrConfig(cfg) // Share the config object