You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by "keon94 (via GitHub)" <gi...@apache.org> on 2023/03/28 15:53:25 UTC

[GitHub] [incubator-devlake] keon94 commented on a diff in pull request #4802: Fix failing python plugin tests

keon94 commented on code in PR #4802:
URL: https://github.com/apache/incubator-devlake/pull/4802#discussion_r1150836787


##########
backend/core/utils/ipc.go:
##########
@@ -260,7 +260,8 @@ func scanErrorPipe(pipe io.ReadCloser, onReceive func([]byte), outboundChannel c
 			data := make([]byte, len(src))
 			copy(data, src)
 			onReceive(data)
-			outboundChannel <- &ProcessResponse{stderr: data}
+			err := errors.Default.New(string(data))

Review Comment:
   What's the reason for creating and returning an error here? The "data" variable here is only going to be single line of text, and is incomplete. If we return an error here, it is going to prematurely end the IPC. See RunProcess().



-- 
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: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org