Skip to content

Commit

Permalink
Fix wrong error info in RepoRefForAPI (go-gitea#24344)
Browse files Browse the repository at this point in the history
Co-authored-by: Giteabot <[email protected]>
  • Loading branch information
yp05327 and GiteaBot committed Apr 26, 2023
1 parent 912a418 commit ce3a57f
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 ce3a57f

Please sign in to comment.