Refactoring finalised ... I think.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user