aboutsummaryrefslogtreecommitdiff
path: root/http_handle_index.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-22 13:59:00 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-22 13:59:00 +0800
commit1f185f329bb82c87b250fb2312ae873d69a20d38 (patch)
tree892ad487e7e1154fcb71fbe05acf9e583592e96b /http_handle_index.go
parentVariable name lengths (diff)
downloadforge-1f185f329bb82c87b250fb2312ae873d69a20d38.tar.gz
forge-1f185f329bb82c87b250fb2312ae873d69a20d38.tar.zst
forge-1f185f329bb82c87b250fb2312ae873d69a20d38.zip
Use a custom errPage500
Diffstat (limited to 'http_handle_index.go')
-rw-r--r--http_handle_index.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/http_handle_index.go b/http_handle_index.go
index 16d343a..a9a4b88 100644
--- a/http_handle_index.go
+++ b/http_handle_index.go
@@ -16,7 +16,7 @@ func httpHandleIndex(writer http.ResponseWriter, request *http.Request, params m
groups, err = queryNameDesc(request.Context(), "SELECT name, COALESCE(description, '') FROM groups WHERE parent_group IS NULL")
if err != nil {
- http.Error(writer, "Error querying groups: "+err.Error(), http.StatusInternalServerError)
+ errorPage500(writer, params, "Error querying groups: "+err.Error())
return
}
params["groups"] = groups