Skip to content

Commit

Permalink
Fix wrong error info in RepoRefForAPI (#24344)
Browse files Browse the repository at this point in the history
Co-authored-by: Giteabot <teabot@gitea.io>
  • Loading branch information
yp05327 and GiteaBot authored Apr 26, 2023
1 parent 62eafea commit 61d08f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/context/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 61d08f4

Please sign in to comment.