🌐 AI搜索 & 代理 主页
Skip to content

Commit 0dcbe3e

Browse files
committed
Return an error back.
1 parent 5df7fff commit 0dcbe3e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/github/issues.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,8 +1661,7 @@ func AssignCopilotToIssue(getGQLClient GetGQLClientFn, t translations.Translatio
16611661
var query suggestedActorsQuery
16621662
err := client.Query(ctx, &query, variables)
16631663
if err != nil {
1664-
_, _ = ghErrors.NewGitHubGraphQLErrorToCtx(ctx, "failed to get suggested actors", err)
1665-
return nil, nil, err
1664+
return ghErrors.NewGitHubGraphQLErrorResponse(ctx, "failed to get suggested actors", err), nil, nil
16661665
}
16671666

16681667
// Iterate all the returned nodes looking for the copilot bot, which is supposed to have the

0 commit comments

Comments
 (0)