fix(doclint): exit 1 when doclint throws an error (#4572)

This commit is contained in:
Joel Einbinder 2020-12-03 09:21:56 -08:00 committed by GitHub
parent d2b7e0d1df
commit bc701629db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,10 @@ const RED_COLOR = '\x1b[31m';
const YELLOW_COLOR = '\x1b[33m';
const RESET_COLOR = '\x1b[0m';
run();
run().catch(e => {
console.error(e);
process.exit(1);
});;
async function run() {
const startTime = Date.now();