Browse Source

Add more details on error report

[CI SKIP]
pull/3809/merge
Unknwon 8 years ago
parent
commit
2ca668e79e
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 2
      modules/context/repo.go
  2. 2
      routers/repo/release.go

2
modules/context/repo.go

@ -242,7 +242,7 @@ func RepoAssignment(args ...bool) macaron.Handler {
tags, err := ctx.Repo.GitRepo.GetTags()
if err != nil {
ctx.Handle(500, "GetTags", err)
ctx.Handle(500, fmt.Sprintf("GetTags '%d'", ctx.Repo.Repository.RepoPath()), err)
return
}
ctx.Data["Tags"] = tags

2
routers/repo/release.go

@ -55,7 +55,7 @@ func Releases(ctx *context.Context) {
rawTags, err := ctx.Repo.GitRepo.GetTags()
if err != nil {
ctx.Handle(500, "GetTags", err)
ctx.Handle(500, fmt.Sprintf("GetTags '%d'", ctx.Repo.Repository.RepoPath()), err)
return
}

Loading…
Cancel
Save