Skip to content

Commit 0d61e49

Browse files
committed
give correct error msg
1 parent f2d6cdf commit 0d61e49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/web/repo/compare.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -732,14 +732,14 @@ func CompareDiff(ctx *context.Context) {
732732

733733
headBranches, _, err := ci.HeadGitRepo.GetBranchNames(0, 0)
734734
if err != nil {
735-
ctx.ServerError("GetTagNamesByRepoID", err)
735+
ctx.ServerError("GetBranches", err)
736736
return
737737
}
738738
ctx.Data["HeadBranches"] = headBranches
739739

740740
headTags, err := repo_model.GetTagNamesByRepoID(ctx, ci.HeadRepo.ID)
741741
if err != nil {
742-
ctx.ServerError("GetTags", err)
742+
ctx.ServerError("GetTagNamesByRepoID", err)
743743
return
744744
}
745745
ctx.Data["HeadTags"] = headTags

0 commit comments

Comments
 (0)