From cc2aca72f63aabe4cf1a380012e723b802e6a02a Mon Sep 17 00:00:00 2001 From: Ismail Mohammed Date: Fri, 31 May 2024 02:09:55 +0300 Subject: [PATCH] Fix error message when vale is not installed Signed-off-by: Ismail Mohammed --- scripts/check-docs-quality.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/scripts/check-docs-quality.js b/scripts/check-docs-quality.js index 9a9336b3e9..ad2750a8c2 100755 --- a/scripts/check-docs-quality.js +++ b/scripts/check-docs-quality.js @@ -71,15 +71,10 @@ async function exitIfMissingVale() { // eslint-disable-next-line @backstage/no-undeclared-imports await require('command-exists')('vale'); } catch (e) { - if (process.env.CI) { - console.log( - `Language linter (vale) was not found. Please install vale linter (https://vale.sh/docs/vale-cli/installation/).\n`, - ); - process.exit(1); - } - console.log(`Language linter (vale) generated errors. Please check the errors and review any markdown files that you changed. - Possibly update .github/vale/config/vocabularies/Backstage/accept.txt to add new valid words.\n`); - process.exit(0); + console.log( + `Language linter (vale) was not found. Please install vale linter (https://vale.sh/docs/vale-cli/installation/).\n`, + ); + process.exit(1); } }