fix(doclint): exit 1 when doclint throws an error (#4572)
This commit is contained in:
parent
d2b7e0d1df
commit
bc701629db
|
|
@ -31,7 +31,10 @@ const RED_COLOR = '\x1b[31m';
|
||||||
const YELLOW_COLOR = '\x1b[33m';
|
const YELLOW_COLOR = '\x1b[33m';
|
||||||
const RESET_COLOR = '\x1b[0m';
|
const RESET_COLOR = '\x1b[0m';
|
||||||
|
|
||||||
run();
|
run().catch(e => {
|
||||||
|
console.error(e);
|
||||||
|
process.exit(1);
|
||||||
|
});;
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const startTime = Date.now();
|
const startTime = Date.now();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue