summaryrefslogtreecommitdiffstats
path: root/routers/repo/middlewares.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/middlewares.go')
-rw-r--r--routers/repo/middlewares.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/middlewares.go b/routers/repo/middlewares.go
index 1829e0d491..8afad5be64 100644
--- a/routers/repo/middlewares.go
+++ b/routers/repo/middlewares.go
@@ -15,7 +15,7 @@ func SetEditorconfigIfExists(ctx *context.Context) {
if err != nil && !git.IsErrNotExist(err) {
description := fmt.Sprintf("Error while getting .editorconfig file: %v", err)
if err := models.CreateRepositoryNotice(description); err != nil {
- ctx.Handle(500, "ErrCreatingReporitoryNotice", err)
+ ctx.ServerError("ErrCreatingReporitoryNotice", err)
}
return
}
@@ -47,6 +47,6 @@ func SetDiffViewStyle(ctx *context.Context) {
ctx.Data["IsSplitStyle"] = style == "split"
if err := ctx.User.UpdateDiffViewStyle(style); err != nil {
- ctx.Handle(500, "ErrUpdateDiffViewStyle", err)
+ ctx.ServerError("ErrUpdateDiffViewStyle", err)
}
}