From 2ca668e79ebe953957d3bcf802cd0a8ed3657b8d Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 10 Feb 2017 17:11:46 -0500 Subject: [PATCH] Add more details on error report [CI SKIP] --- modules/context/repo.go | 2 +- routers/repo/release.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/context/repo.go b/modules/context/repo.go index b72d19ece..8320afab1 100644 --- a/modules/context/repo.go +++ b/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 diff --git a/routers/repo/release.go b/routers/repo/release.go index f7dd888fc..b233116a1 100644 --- a/routers/repo/release.go +++ b/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 }