warren830 commented on code in PR #4190:
URL: 
https://github.com/apache/incubator-devlake/pull/4190#discussion_r1066539272


##########
plugins/helper/graphql_collector.go:
##########
@@ -256,7 +257,12 @@ func (collector *GraphqlCollector) fetchAsync(divider 
*BatchSaveDivider, reqData
        logger := collector.args.Ctx.GetLogger()
        dataErrors, err := collector.args.GraphqlClient.Query(query, variables)
        if err != nil {
-               collector.checkError(errors.Default.Wrap(err, `graphql query 
failed`))
+               if errors.Is(err, context.Canceled) {
+                       // direct error message for error combine
+                       collector.checkError(errors.Default.Wrap(err, `graphql 
query canceled`))
+               } else {

Review Comment:
   Do we have to wrap it?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to