diff options
Diffstat (limited to 'http_handle_group_index.go')
-rw-r--r-- | http_handle_group_index.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http_handle_group_index.go b/http_handle_group_index.go index d8e496f..eef6682 100644 --- a/http_handle_group_index.go +++ b/http_handle_group_index.go @@ -79,7 +79,7 @@ func httpHandleGroupIndex(writer http.ResponseWriter, request *http.Request, par if request.Method == http.MethodPost { if !directAccess { - http.Error(writer, "You do not have direct access to this group", http.StatusForbidden) + errorPage403(writer, params, "You do not have direct access to this group") return } @@ -87,7 +87,7 @@ func httpHandleGroupIndex(writer http.ResponseWriter, request *http.Request, par repoDesc := request.FormValue("repo_desc") contribReq := request.FormValue("repo_contrib") if repoName == "" { - http.Error(writer, "Repo name is required", http.StatusBadRequest) + errorPage400(writer, params, "Repo name is required") return } |