Skip to content

Commit

Permalink
fix: display correct error messages from flow script (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharygolba authored Jul 1, 2016
1 parent 5aeb903 commit 40863b4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions scripts/flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@ const platform = require('os').platform();

if (!WINDOWS.test(platform)) {
exec('flow check', (err, data) => {
if (err) {
console.error(err);
process.exit(1);
} else {
console.log(data);
process.exit(0);
}
console.log(data);
process.exit(err ? 1 : 0);
});
}

0 comments on commit 40863b4

Please sign in to comment.