PLT-6471 Properly panic when translations can't be loaded (#6414)
* PLT-6471 Properly panic when translations can't be loaded * Print usage messages when errors occur during CLI initialization * Reverted behaviour of FindDir and added second return value to it * Fixed merge conflict
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
69f3f2fdce
Коммит
5c1049054e
@@ -33,7 +33,7 @@ func InitHTMLWithDir(dir string) {
|
||||
return
|
||||
}
|
||||
|
||||
templatesDir := FindDir(dir)
|
||||
templatesDir, _ := FindDir(dir)
|
||||
l4g.Debug(T("api.api.init.parsing_templates.debug"), templatesDir)
|
||||
var err error
|
||||
if htmlTemplates, err = template.ParseGlob(templatesDir + "*.html"); err != nil {
|
||||
|
||||
Ссылка в новой задаче
Block a user