diff options
author | eric thul <thul.eric@gmail.com> | 2016-11-19 21:08:47 -0500 |
---|---|---|
committer | eric thul <thul.eric@gmail.com> | 2016-11-19 21:08:47 -0500 |
commit | b683b0b17cde53739ccb22da93ffb2bba2719667 (patch) | |
tree | ff604c372a8cb2c0a2e11142661d591680ed872b /src/Psc.js | |
parent | 5b28db7d119dc46c382e666fbb2110b611398c4a (diff) | |
download | purs-loader-b683b0b17cde53739ccb22da93ffb2bba2719667.tar.gz purs-loader-b683b0b17cde53739ccb22da93ffb2bba2719667.tar.zst purs-loader-b683b0b17cde53739ccb22da93ffb2bba2719667.zip |
Emit warnings/errors to the compilation instance
Avoids duplication of warnings. Resolves #78
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.') |