Add log.handle

This commit is contained in:
Unknown 2014-03-14 01:59:07 -04:00
parent 15f8bc417e
commit 1ce17cce76
6 changed files with 16 additions and 36 deletions

View file

@ -16,9 +16,7 @@ func Single(params martini.Params, r render.Render, data base.TmplData) {
files, err := models.GetReposFiles(params["username"], params["reponame"], "HEAD", "/")
if err != nil {
data["ErrorMsg"] = err
log.Error("repo.List: %v", err)
r.HTML(200, "base/error", data)
log.Handle(200, "repo.Single", data, r, err)
return
}