Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec704c5

Browse files
authored
Merge pull request atom#892 from atom/mkt-fix-bad-ipc-messages
Fix bad IPC messages
2 parents bc51407 + 33f1197 commit ec704c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ ipc.on(channelName, (event, {type, data}) => {
8080
event.sender.sendTo(managerWebContentsId, channelName, {
8181
sourceWebContentsId,
8282
type: 'git-spawn-error',
83-
id, err,
83+
data: {id, err},
8484
});
8585
});
8686

8787
child.stdin.on('error', err => {
8888
event.sender.sendTo(managerWebContentsId, channelName, {
8989
sourceWebContentsId,
9090
type: 'git-stdin-error',
91-
id, stdin: options.stdin, err,
91+
data: {id, stdin: options.stdin, err},
9292
});
9393
});
9494
};

0 commit comments

Comments
 (0)