diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-17 14:21:38 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-17 14:21:38 -0400 |
commit | b51a9d109f341fee6d8b58613e6036492968c6e6 (patch) | |
tree | add0a7347f231016058127ed3171b12572cb5f0b | |
parent | f31151e681384be2412c01d3baa53e471212e8dd (diff) | |
download | gitea-b51a9d109f341fee6d8b58613e6036492968c6e6.tar.gz gitea-b51a9d109f341fee6d8b58613e6036492968c6e6.zip |
Mirror change
-rw-r--r-- | routers/repo/single.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/repo/single.go b/routers/repo/single.go index 0bf3454530..396c9455b9 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 |