update install script
Some checks failed
CI / test-build (push) Has been cancelled

This commit is contained in:
2025-12-16 00:58:02 +07:00
parent e1a66dc7df
commit f1a344bf6a
3 changed files with 218 additions and 1 deletions

View File

@@ -151,7 +151,8 @@ func (a *App) render(w http.ResponseWriter, name string, data any) {
w.Header().Set("Content-Type", "text/html; charset=utf-8")
// base.html defines layout; dashboard.html will invoke it via template inheritance style.
if err := a.tmpl.ExecuteTemplate(w, name, data); err != nil {
log.Printf("template render error: %v", err)
log.Printf("template render error: %v (template: %s, templates dir: %s)", err, name, a.cfg.TemplatesDir)
// In production, don't expose internal error details to client
http.Error(w, "template render error", http.StatusInternalServerError)
return
}