Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

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

Joel Einbinderbc701629dbe6
diff --git a/utils/doclint/cli.js b/utils/doclint/cli.js
index c1e9492aeb..f5a3c25215 100755
--- a/utils/doclint/cli.js
+++ b/utils/doclint/cli.js
@@ -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();