From b51a9d109f341fee6d8b58613e6036492968c6e6 Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 17 Mar 2014 14:21:38 -0400 Subject: [PATCH] Mirror change --- routers/repo/single.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routers/repo/single.go b/routers/repo/single.go index 0bf34545301..396c9455b99 100644 --- a/routers/repo/single.go +++ b/routers/repo/single.go @@ -52,7 +52,7 @@ func Single(ctx *middleware.Context, params martini.Params) { files, err := models.GetReposFiles(params["username"], params["reponame"], params["branchname"], treename) if err != nil { - ctx.Render.Error(404) + ctx.Handle(200, "repo.Single", err) return } ctx.Data["Username"] = params["username"] @@ -62,7 +62,7 @@ func Single(ctx *middleware.Context, params martini.Params) { // Branches. brs, err := models.GetBranches(params["username"], params["reponame"]) if err != nil { - ctx.Render.Error(404) + ctx.Handle(200, "repo.Single", err) return } ctx.Data["Branches"] = brs @@ -80,7 +80,7 @@ func Single(ctx *middleware.Context, params martini.Params) { // Get latest commit according username and repo name commit, err := models.GetLastestCommit(params["username"], params["reponame"]) if err != nil { - ctx.Render.Error(404) + ctx.Handle(200, "repo.Single", err) return } ctx.Data["LatestCommit"] = commit