Skip to content

Commit af5d66b

Browse files
GiteaBotyp05327
andauthored
Fix wrong error info in RepoRefForAPI (#24344) (#24351)
Backport #24344 by @yp05327 Co-authored-by: yp05327 <576951401@qq.com>
1 parent 912a418 commit af5d66b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/context/api.go

+1-1
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)