Skip to content

Commit a831399

Browse files
committed
fix(Control): Append stderr and stdout when data is written
1 parent 2d4c443 commit a831399

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Core/Control.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,13 +285,13 @@ class Control {
285285
this.childProcess.stderr.on('data', buffer => {
286286
result.currentLine = buffer.toString();
287287
emitter.emit('stderr', result);
288-
result.raw.stderr = result.currentLine;
288+
result.raw.stderr += result.currentLine;
289289
});
290290

291291
this.childProcess.stdout.on('data', buffer => {
292292
result.currentLine = buffer.toString();
293293
emitter.emit('stdout', result);
294-
result.raw.stdout = result.currentLine;
294+
result.raw.stdout += result.currentLine;
295295
});
296296

297297
this.childProcess.on('error', err => {

0 commit comments

Comments
 (0)