Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
[fixed] JS.typecheck to disregard the contents of stderr when execu…
Browse files Browse the repository at this point in the history
…ting the flow typechecker, because it prints errors to stdout
  • Loading branch information
thealjey committed Apr 5, 2017
1 parent 5488581 commit a30d433
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/JS.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ export class JS {
if (error) {
return logError(error);
}
flow.run((flowErr, stdout) => {
if (flowErr) {
return logError(flowErr);
}
flow.run((_, stdout) => {
if (!JSON.parse(stdout).passed) {
return flow.run(noop, [], {stdio: 'inherit'});
}
Expand Down

0 comments on commit a30d433

Please sign in to comment.