From d987f158122b7ecc0364835e9b9ffe7048094888 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 21 Mar 2025 22:43:10 +0800 Subject: Group not found -> 404 --- http_handle_group_index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3