aboutsummaryrefslogtreecommitdiff
path: root/backend/data.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 18:22:34 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 18:22:34 +0200
commit1168ac60d3a22c0d354f291fd657ad302df6ec05 (patch)
treefc492948f751db0a72ec4a5ea1231b35d78c5b66 /backend/data.go
parentdfca0f5bbebfe11d9c5d8bf6584bd1bf80d62274 (diff)
feat(backend): use httplog
Diffstat (limited to 'backend/data.go')
-rw-r--r--backend/data.go6
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)
}
}