From 999bb7d65ecf61f59f8d54a60362307537e49030 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 25 Mar 2025 12:49:28 +0800 Subject: Add 403 and 501 pages --- http_handle_repo_contrib_one.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'http_handle_repo_contrib_one.go') diff --git a/http_handle_repo_contrib_one.go b/http_handle_repo_contrib_one.go index 4a5f6b8..134f50b 100644 --- a/http_handle_repo_contrib_one.go +++ b/http_handle_repo_contrib_one.go @@ -26,7 +26,7 @@ func httpHandleRepoContribOne(writer http.ResponseWriter, request *http.Request, mrIDStr = params["mr_id"].(string) mrIDInt64, err := strconv.ParseInt(mrIDStr, 10, strconv.IntSize) if err != nil { - http.Error(writer, "Merge request ID not an integer: "+err.Error(), http.StatusBadRequest) + errorPage400(writer, params, "Merge request ID not an integer") return } mrIDInt = int(mrIDInt64) -- cgit v1.2.3