mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-01 04:12:10 +00:00
Handle refactor (#3339)
* Replace all ctx.Handle with ctx.ServerError or ctx.NotFound * Change Handle(403) to NotFound, avoid using macaron's NotFound
This commit is contained in:
parent
45c264f681
commit
65861900cd
48 changed files with 622 additions and 610 deletions
|
@ -48,7 +48,7 @@ func Activity(ctx *context.Context) {
|
|||
ctx.Repo.Repository.UnitEnabled(models.UnitTypeReleases),
|
||||
ctx.Repo.Repository.UnitEnabled(models.UnitTypeIssues),
|
||||
ctx.Repo.Repository.UnitEnabled(models.UnitTypePullRequests)); err != nil {
|
||||
ctx.Handle(500, "GetActivityStats", err)
|
||||
ctx.ServerError("GetActivityStats", err)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue