aboutsummaryrefslogtreecommitdiff
path: root/http_handle_repo_contrib_one.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-25 12:49:28 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-25 12:49:28 +0800
commit999bb7d65ecf61f59f8d54a60362307537e49030 (patch)
tree2f5d76e82d3b178b5dcb08182c8690534e446407 /http_handle_repo_contrib_one.go
parentRemove unnecessary whitespace in branches template (diff)
downloadforge-999bb7d65ecf61f59f8d54a60362307537e49030.tar.gz
forge-999bb7d65ecf61f59f8d54a60362307537e49030.tar.zst
forge-999bb7d65ecf61f59f8d54a60362307537e49030.zip
Add 403 and 501 pages
Diffstat (limited to 'http_handle_repo_contrib_one.go')
-rw-r--r--http_handle_repo_contrib_one.go2
1 files changed, 1 insertions, 1 deletions
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)