chore: upgrade to go1.24
This commit is contained in:
@ -9,7 +9,7 @@ import (
|
||||
|
||||
func RenderTemplate(w http.ResponseWriter, t templ.Component, l *Logger) {
|
||||
if err := t.Render(context.Background(), w); err != nil {
|
||||
l.Error("unable to render template %s", err)
|
||||
l.Errorf("unable to render template %s", err)
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
_, err := w.Write([]byte{})
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user