Skip to content

Commit

Permalink
Fix wrong error info in RepoRefForAPI (#24344) (#24351)
Browse files Browse the repository at this point in the history
Backport #24344 by @yp05327

Co-authored-by: yp05327 <576951401@qq.com>
  • Loading branch information
GiteaBot and yp05327 authored Apr 26, 2023
1 parent 912a418 commit af5d66b
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 af5d66b

Please sign in to comment.