diff --git a/views/views.go b/views/views.go index 4018508..ac58226 100644 --- a/views/views.go +++ b/views/views.go @@ -61,7 +61,6 @@ func initTemplates(viewFS embed.FS, viewMap map[string][]string, funcMap map[str func RenderHTML(w http.ResponseWriter, r *http.Request, name string, data any) error { tmpl, ok := TemplateCache[name] if !ok { - http.Error(w, "template not found: "+name, http.StatusNotFound) return fmt.Errorf("template %q not found", name) }