aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-21 22:43:10 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-21 22:43:10 +0800
commitd987f158122b7ecc0364835e9b9ffe7048094888 (patch)
tree9c2eeaf78259ac75775fe49918e58db4c6d8389f
parentAdd a "Proper" 404 page (diff)
downloadforge-d987f158122b7ecc0364835e9b9ffe7048094888.tar.gz
forge-d987f158122b7ecc0364835e9b9ffe7048094888.tar.zst
forge-d987f158122b7ecc0364835e9b9ffe7048094888.zip
Group not found -> 404
-rw-r--r--http_handle_group_index.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/http_handle_group_index.go b/http_handle_group_index.go
index 51e4773..22fb548 100644
--- a/http_handle_group_index.go
+++ b/http_handle_group_index.go
@@ -55,7 +55,7 @@ func httpHandleGroupIndex(w http.ResponseWriter, r *http.Request, params map[str
).Scan(&groupID, &groupDesc)
if err == pgx.ErrNoRows {
- http.Error(w, "Group not found", http.StatusNotFound)
+ errorPage404(w, params)
return
} else if err != nil {
http.Error(w, "Error getting group: "+err.Error(), http.StatusInternalServerError)