Refactoring finalised ... I think.

This commit is contained in:
2025-04-23 11:30:03 +01:00
parent e938828a8c
commit f9853c921d
3 changed files with 13 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ func MessagesInboxHandler(db *sql.DB) http.HandlerFunc {
tmpl := templateHelpers.LoadTemplateFiles("messages.html", "templates/account/messages/index.html")
if err := tmpl.ExecuteTemplate(w, "layout", context); err != nil {
// ToDo: Make this load all error pages without defining explictly.
templateHelpers.RenderError(w, r, 500)
}
}