update config err
This commit is contained in:
parent
aefc414c63
commit
85fc085b95
@ -150,12 +150,11 @@ func init() {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if cont != nil {
|
if cont != nil && len(cont) != 0 {
|
||||||
dtmcli.Logf("cont is: \n%s", string(cont))
|
dtmcli.Logf("cont is: \n%s", string(cont))
|
||||||
err := yaml.Unmarshal(cont, &DtmConfig)
|
err := yaml.Unmarshal(cont, &DtmConfig)
|
||||||
dtmcli.FatalIfError(err)
|
dtmcli.FatalIfError(err)
|
||||||
}
|
}
|
||||||
dtmcli.LogIfFatalf(DtmConfig.DB["driver"] == "" || DtmConfig.DB["user"] == "",
|
dtmcli.LogIfFatalf(DtmConfig.DB["driver"] == "" || DtmConfig.DB["user"] == "",
|
||||||
"dtm config error: %v. check you env, and conf.yml/conf.sample.yml in current and parent path: %s", DtmConfig, MustGetwd())
|
"dtm配置错误. 请访问 http://dtm.pub 查看部署运维环节. check you env, and conf.yml/conf.sample.yml in current and parent path: %s. config is: \n%v", MustGetwd(), DtmConfig)
|
||||||
dtmcli.Logf("after fatalIf")
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user