Exit with failing code if prettier throws to ensure CI is blocked
Andrew Clark committed
Mar 16, 2017 at 10:58 UTC
0e5be287f734adf66ed3b9dc3cde5da00413884e
1 file changed
+2
scripts/prettier/index.js
+2
@@ -71,6 +71,8 @@ Object.keys(config).forEach(key => {
71
chalk.dim(` and add changes to files listed above to your commit.`) +
72
`\n`
73
);
74
+ process.exit(1);
75
}
76
+ throw e;
77
}
78
});