diff --git a/weed/admin/handlers/group_handlers.go b/weed/admin/handlers/group_handlers.go index 50e65ac73..2b2c3ef32 100644 --- a/weed/admin/handlers/group_handlers.go +++ b/weed/admin/handlers/group_handlers.go @@ -97,7 +97,12 @@ func (h *GroupHandlers) GetGroupDetails(w http.ResponseWriter, r *http.Request) group, err := h.adminServer.GetGroupDetails(r.Context(), name) if err != nil { glog.Errorf("Failed to get group details: %v", err) - writeJSONError(w, groupErrorToHTTPStatus(err), "Group not found") + status := groupErrorToHTTPStatus(err) + msg := "Failed to retrieve group" + if status == http.StatusNotFound { + msg = "Group not found" + } + writeJSONError(w, status, msg) return } writeJSON(w, http.StatusOK, group)