mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-29 21:26:10 +01:00
Backport #24344 by @yp05327 Co-authored-by: yp05327 <576951401@qq.com>
This commit is contained in:
parent
912a418920
commit
af5d66b341
|
@ -337,7 +337,7 @@ func RepoRefForAPI(next http.Handler) http.Handler {
|
||||||
if git.IsErrNotExist(err) {
|
if git.IsErrNotExist(err) {
|
||||||
ctx.NotFound()
|
ctx.NotFound()
|
||||||
} else {
|
} else {
|
||||||
ctx.Error(http.StatusInternalServerError, "GetBlobByPath", err)
|
ctx.Error(http.StatusInternalServerError, "GetCommit", err)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue