diff options
Diffstat (limited to 'src/Psc.js')
-rw-r--r-- | src/Psc.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -33,8 +33,9 @@ function compile(psModule) { | |||
33 | 33 | ||
34 | const compilation = spawn(options.psc, args) | 34 | const compilation = spawn(options.psc, args) |
35 | 35 | ||
36 | compilation.stdout.on('data', data => stderr.push(data.toString())) | 36 | compilation.stderr.on('data', data => { |
37 | compilation.stderr.on('data', data => stderr.push(data.toString())) | 37 | stderr.push(data.toString()); |
38 | }); | ||
38 | 39 | ||
39 | compilation.on('close', code => { | 40 | compilation.on('close', code => { |
40 | debug('finished compiling PureScript.') | 41 | debug('finished compiling PureScript.') |