summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-04-26 17:14:35 +0900
committerGitHub <noreply@github.com>2023-04-26 04:14:35 -0400
commit61d08f446a5677933465c39d19a28fb2ea056e13 (patch)
tree2050b7446a4d992d3dd0a530d1dc940796032ce5 /modules
parent62eafea3f9b57fa1cac419b4347f31578fc0deb7 (diff)
downloadgitea-61d08f446a5677933465c39d19a28fb2ea056e13.tar.gz
gitea-61d08f446a5677933465c39d19a28fb2ea056e13.zip
Fix wrong error info in RepoRefForAPI (#24344)
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'modules')
-rw-r--r--modules/context/api.go2
1 files changed, 1 insertions, 1 deletions
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
}