Skip to content

Commit

Permalink
give correct error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
HesterG committed Mar 15, 2023
1 parent f2d6cdf commit 0d61e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routers/web/repo/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -732,14 +732,14 @@ func CompareDiff(ctx *context.Context) {

headBranches, _, err := ci.HeadGitRepo.GetBranchNames(0, 0)
if err != nil {
ctx.ServerError("GetTagNamesByRepoID", err)
ctx.ServerError("GetBranches", err)
return
}
ctx.Data["HeadBranches"] = headBranches

headTags, err := repo_model.GetTagNamesByRepoID(ctx, ci.HeadRepo.ID)
if err != nil {
ctx.ServerError("GetTags", err)
ctx.ServerError("GetTagNamesByRepoID", err)
return
}
ctx.Data["HeadTags"] = headTags
Expand Down

0 comments on commit 0d61e49

Please sign in to comment.