mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-18 18:58:22 +08:00
Refactor error system (#33610)
This commit is contained in:
@ -30,7 +30,7 @@ func RenderFile(ctx *context.Context) {
|
||||
}
|
||||
if err != nil {
|
||||
if git.IsErrNotExist(err) {
|
||||
ctx.NotFound("GetBlobByPath", err)
|
||||
ctx.NotFound(err)
|
||||
} else {
|
||||
ctx.ServerError("GetBlobByPath", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user