Fix load config panic errors to display message instead of id (#3855)
Этот коммит содержится в:
@@ -168,11 +168,11 @@ func LoadConfig(fileName string) {
|
|||||||
config.SetDefaults()
|
config.SetDefaults()
|
||||||
|
|
||||||
if err := config.IsValid(); err != nil {
|
if err := config.IsValid(); err != nil {
|
||||||
panic(err.Error())
|
panic(T(err.Id))
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := ValidateLdapFilter(&config); err != nil {
|
if err := ValidateLdapFilter(&config); err != nil {
|
||||||
panic(err.Error())
|
panic(T(err.Id))
|
||||||
}
|
}
|
||||||
|
|
||||||
configureLog(&config.LogSettings)
|
configureLog(&config.LogSettings)
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user