Skip to content

Commit

Permalink
fix: we were not exiting with 1 if mkdir failed (bcoe#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored May 3, 2019
1 parent d0b132e commit fb02ed6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bin/c8.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const {
const instrumenterArgs = hideInstrumenteeArgs()
let argv = buildYargs().parse(instrumenterArgs)

;(async function run () {
async function run () {
if ([
'check-coverage', 'report'
].indexOf(argv._[0]) !== -1) {
Expand All @@ -33,4 +33,9 @@ let argv = buildYargs().parse(instrumenterArgs)
done()
})
}
})()
}

run().catch((err) => {
console.error(err.stack)
process.exitCode = 1
})

0 comments on commit fb02ed6

Please sign in to comment.