From af5d66b341a44e17e8b58a1ddb375a62e7a37ac8 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Wed, 26 Apr 2023 05:07:51 -0400 Subject: [PATCH] Fix wrong error info in RepoRefForAPI (#24344) (#24351) Backport #24344 by @yp05327 Co-authored-by: yp05327 <576951401@qq.com> --- modules/context/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/context/api.go b/modules/context/api.go index f7a3384691..d405c9972b 100644 --- a/modules/context/api.go +++ b/modules/context/api.go @@ -337,7 +337,7 @@ func RepoRefForAPI(next http.Handler) http.Handler { if git.IsErrNotExist(err) { ctx.NotFound() } else { - ctx.Error(http.StatusInternalServerError, "GetBlobByPath", err) + ctx.Error(http.StatusInternalServerError, "GetCommit", err) } return }