Sfoglia il codice sorgente

Add more details on error report

[CI SKIP]
Unknwon 8 anni fa
parent
commit
2ca668e79e
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      modules/context/repo.go
  2. 1 1
      routers/repo/release.go

+ 1 - 1
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

+ 1 - 1
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
 	}