Add more details on error report

[CI SKIP]
pull/3809/merge
Unknwon 2017-02-10 17:11:46 -05:00
parent ee59016585
commit 2ca668e79e
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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
}