This commit is contained in:
Ruidy 2024-04-19 20:36:59 +02:00
parent f89ee4f33d
commit 32350c59b6
No known key found for this signature in database
GPG key ID: E00F51288CB857CC

View file

@ -5,6 +5,7 @@ import (
"embed"
"errors"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@ -104,7 +105,8 @@ func renderTempl(c echo.Context, status int, t templ.Component) error {
err := t.Render(context.Background(), c.Response().Writer)
if err != nil {
return c.String(http.StatusInternalServerError, "failed to render response template")
log.Printf("failed to render response template %s", err)
return err
}
return nil