Skip to content

Commit

Permalink
fix(flow): Exit with appropriate error code when flow fails
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorgerhardt committed May 1, 2017
1 parent 7ee0980 commit 5afc60e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/mastarm-flow
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const flow = require('flow-bin')
const args = process.argv.slice(2)
if (args.length === 0) args.push('check')

execFile(flow, args, (_, stdout) => {
execFile(flow, args, (error, stdout) => {
console.log(stdout)
if (error) process.exit(1)
})

0 comments on commit 5afc60e

Please sign in to comment.