Skip to content

Commit ce3a57f

Browse files
yp05327GiteaBot
andcommitted
Fix wrong error info in RepoRefForAPI (go-gitea#24344)
Co-authored-by: Giteabot <[email protected]>
1 parent 912a418 commit ce3a57f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/context/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ func RepoRefForAPI(next http.Handler) http.Handler {
337337
if git.IsErrNotExist(err) {
338338
ctx.NotFound()
339339
} else {
340-
ctx.Error(http.StatusInternalServerError, "GetBlobByPath", err)
340+
ctx.Error(http.StatusInternalServerError, "GetCommit", err)
341341
}
342342
return
343343
}

0 commit comments

Comments
 (0)