Merge branch 'main' into clamav-prescan

This commit is contained in:
Andrea Spacca
2022-01-09 20:20:49 +01:00
committed by GitHub
3 changed files with 88 additions and 97 deletions

View File

@ -434,11 +434,11 @@ func (s *Server) Run() {
_, err = htmlTemplates.New(stripPrefix(path)).Parse(string(bytes))
if err != nil {
s.logger.Panicln("Unable to parse template")
s.logger.Println("Unable to parse html template", err)
}
_, err = textTemplates.New(stripPrefix(path)).Parse(string(bytes))
if err != nil {
s.logger.Panicln("Unable to parse template")
s.logger.Println("Unable to parse text template", err)
}
}
}