Skip to content

Commit

Permalink
postcss should exit with code 1 when there's an error; even with --wa…
Browse files Browse the repository at this point in the history
…tch (#178)
  • Loading branch information
GreenGremlin authored and RyanZim committed Feb 3, 2018
1 parent 596b1f4 commit f0af2e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ Promise.resolve()
})
}
})
.catch(error)
.catch(err => {
error(err)

process.exit(1)
})

function rc(ctx, path) {
if (argv.use) return Promise.resolve()
Expand Down

0 comments on commit f0af2e4

Please sign in to comment.