summaryrefslogtreecommitdiffstats
path: root/routers/admin/repos.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/admin/repos.go')
-rw-r--r--routers/admin/repos.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/admin/repos.go b/routers/admin/repos.go
index 8712797cf0..fcb51e650b 100644
--- a/routers/admin/repos.go
+++ b/routers/admin/repos.go
@@ -34,12 +34,12 @@ func Repos(ctx *context.Context) {
func DeleteRepo(ctx *context.Context) {
repo, err := models.GetRepositoryByID(ctx.QueryInt64("id"))
if err != nil {
- ctx.Handle(500, "GetRepositoryByID", err)
+ ctx.ServerError("GetRepositoryByID", err)
return
}
if err := models.DeleteRepository(ctx.User, repo.MustOwner().ID, repo.ID); err != nil {
- ctx.Handle(500, "DeleteRepository", err)
+ ctx.ServerError("DeleteRepository", err)
return
}
log.Trace("Repository deleted: %s/%s", repo.MustOwner().Name, repo.Name)