Fix wrong error info in RepoRefForAPI (#24344)

Co-authored-by: Giteabot <teabot@gitea.io>
forgejo-federated-star
yp05327 1 year ago committed by GitHub
parent 62eafea3f9
commit 61d08f446a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save