mirror of
https://github.com/go-gitea/gitea.git
synced 2025-10-28 12:38:15 -04: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