Skip to content

Commit

Permalink
do not override error message (#1604)
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes committed Jul 4, 2024
1 parent e329b54 commit 3e32800
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/controllers/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -763,9 +763,9 @@ func handleIssueCommentEvent(gh utils.GithubClientProvider, payload *github.Issu

diggerYmlStr, ghService, config, projectsGraph, branch, commitSha, err := getDiggerConfigForPR(gh, installationId, repoFullName, repoOwner, repoName, cloneURL, issueNumber)
if err != nil {
ghService, _, err := utils.GetGithubService(gh, installationId, repoFullName, repoOwner, repoName)
if err != nil {
log.Printf("GetGithubService error: %v", err)
ghService, _, gherr := utils.GetGithubService(gh, installationId, repoFullName, repoOwner, repoName)
if gherr != nil {
log.Printf("GetGithubService error: %v", gherr)
return fmt.Errorf("error getting ghService to post error comment")
}
utils.InitCommentReporter(ghService, issueNumber, fmt.Sprintf(":x: Could not load digger config, error: %v", err))
Expand Down

0 comments on commit 3e32800

Please sign in to comment.