From 65861900cda3bb6d9e2aa80b808b0000383c04b3 Mon Sep 17 00:00:00 2001 From: Morgan Bazalgette Date: Wed, 10 Jan 2018 22:34:17 +0100 Subject: Handle refactor (#3339) * Replace all ctx.Handle with ctx.ServerError or ctx.NotFound * Change Handle(403) to NotFound, avoid using macaron's NotFound --- routers/install.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/install.go') diff --git a/routers/install.go b/routers/install.go index df65d4fabf..c180d947fc 100644 --- a/routers/install.go +++ b/routers/install.go @@ -33,7 +33,7 @@ const ( // InstallInit prepare for rendering installation page func InstallInit(ctx *context.Context) { if setting.InstallLock { - ctx.Handle(404, "Install", errors.New("Installation is prohibited")) + ctx.NotFound("Install", errors.New("Installation is prohibited")) return } -- cgit v1.2.3