0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 23:33:15 -05:00

Fix wrong error info in RepoRefForAPI (#24344)

Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
yp05327 2023-04-26 17:14:35 +09:00 committed by GitHub
parent 62eafea3f9
commit 61d08f446a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}