mirror of
https://github.com/go-gitea/gitea
synced 2025-07-13 22:17:20 +00: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