diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-02 18:22:34 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-02 18:22:34 +0200 |
| commit | 1168ac60d3a22c0d354f291fd657ad302df6ec05 (patch) | |
| tree | fc492948f751db0a72ec4a5ea1231b35d78c5b66 /backend/data.go | |
| parent | dfca0f5bbebfe11d9c5d8bf6584bd1bf80d62274 (diff) | |
feat(backend): use httplog
Diffstat (limited to 'backend/data.go')
| -rw-r--r-- | backend/data.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/backend/data.go b/backend/data.go index e1a8478..bc74ba5 100644 --- a/backend/data.go +++ b/backend/data.go @@ -25,13 +25,11 @@ func (d *data) handleGeneric(w http.ResponseWriter, name string) { }, }).ParseFS(templates, fmt.Sprintf("templates/%s.html", name), "templates/base.html") if err != nil { - w.WriteHeader(http.StatusInternalServerError) - return + panic(err) } err = t.ExecuteTemplate(w, "base.html", d) if err != nil { - w.WriteHeader(http.StatusInternalServerError) - return + panic(err) } } |
