mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
give some hints if we fail to load HTML templates
Fixes #986 Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -50,8 +50,9 @@ func LoadTemplate(base *template.Template, paths ...string) *template.Template {
|
||||
|
||||
if err != nil {
|
||||
logger.ErrorToConsole("error loading required template: %v", err)
|
||||
logger.ErrorToConsole(templateLoadErrorHints)
|
||||
logger.Error(logSender, "", "error loading required template: %v", err)
|
||||
panic(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
return t
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user