Skip to content

Commit 61d08f4

Browse files
yp05327GiteaBot
andauthored
Fix wrong error info in RepoRefForAPI (#24344)
Co-authored-by: Giteabot <[email protected]>
1 parent 62eafea commit 61d08f4

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)