Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit ac17c52

Browse files
committed
Merge pull request #27 from purescript-contrib/topic/issue-26
Fixing typo when assigning stderr in spawn
2 parents 2907538 + 4ff8322 commit ac17c52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ChildProcess.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function spawnFn(command, args, errback, callback) {
3030
});
3131
3232
process.stderr.on('data', function(data){
33-
stdout = Buffer.concat([stderr, new Buffer(data)]);
33+
stderr = Buffer.concat([stderr, new Buffer(data)]);
3434
});
3535
3636
process.on('close', function(code){

test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ test('psc - failure', function(t){
5353

5454
gulp.src(fixture).pipe(stream).
5555
on('error', function(e){
56-
t.ok(e.message && e.message !== '', 'should have a failure message');
56+
t.ok(/"where"/.test(e.message), 'should have a failure message');
5757
t.equal('Error', e.name);
5858
});
5959
});

0 commit comments

Comments
 (0)