From d987f158122b7ecc0364835e9b9ffe7048094888 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 21 Mar 2025 22:43:10 +0800 Subject: [PATCH] Group not found -> 404 --- http_handle_group_index.go | 2 +- diff --git a/http_handle_group_index.go b/http_handle_group_index.go index 51e4773c6ab7d4ed356ea34e0409429d99a270cd..22fb54845bac0f70271e80f7fb773fc2193c2dd3 100644 --- a/http_handle_group_index.go +++ b/http_handle_group_index.go @@ -55,7 +55,7 @@ pgtype.FlatArray[string](groupPath), ).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) -- 2.48.1