diff options
author | yp05327 <576951401@qq.com> | 2023-04-26 17:14:35 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 04:14:35 -0400 |
commit | 61d08f446a5677933465c39d19a28fb2ea056e13 (patch) | |
tree | 2050b7446a4d992d3dd0a530d1dc940796032ce5 /modules | |
parent | 62eafea3f9b57fa1cac419b4347f31578fc0deb7 (diff) | |
download | gitea-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.go | 2 |
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 } |