Skip to content

Commit f0af2e4

Browse files
GreenGremlinRyanZim
authored andcommitted
postcss should exit with code 1 when there's an error; even with --watch (#178)
1 parent 596b1f4 commit f0af2e4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ Promise.resolve()
114114
})
115115
}
116116
})
117-
.catch(error)
117+
.catch(err => {
118+
error(err)
119+
120+
process.exit(1)
121+
})
118122

119123
function rc(ctx, path) {
120124
if (argv.use) return Promise.resolve()

0 commit comments

Comments
 (0)