Skip to content

Commit f382e84

Browse files
jaceksanCopilot
andauthored
Catch error and debug(print) it
Co-authored-by: Copilot <[email protected]>
1 parent 64dfc05 commit f382e84

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/github/actions.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,10 @@ func GetPullRequestCIFailures(getClient GetClientFn, t translations.TranslationH
14541454
"workflow": run.GetWorkflowID(),
14551455
"error": err.Error(),
14561456
}
1457-
_, _ = ghErrors.NewGitHubAPIErrorToCtx(ctx, "failed to get job logs", resp, err)
1457+
ctx, err2 := ghErrors.NewGitHubAPIErrorToCtx(ctx, "failed to get job logs", resp, err)
1458+
if err2 != nil {
1459+
fmt.Printf("failed to record GitHub API error in context: %v\n", err2)
1460+
}
14581461
}
14591462

14601463
if failedJobCount, ok := runResult["failed_jobs"].(int); ok {

0 commit comments

Comments
 (0)