From 554cef31163d2d7e43c5275fcd3d30c2fe51513b Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Thu, 31 Aug 2023 11:37:36 +0200 Subject: [PATCH] MOBILE-4362 behat: Improve task error message --- scripts/build-behat-plugin.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/build-behat-plugin.js b/scripts/build-behat-plugin.js index 04daa3e94..52ec0d259 100755 --- a/scripts/build-behat-plugin.js +++ b/scripts/build-behat-plugin.js @@ -21,7 +21,9 @@ const { mkdirSync, copySync } = require('fs-extra'); const { resolve, extname, dirname, basename, relative } = require('path'); async function main() { - const pluginPath = process.argv[2] || guessPluginPath() || fail('Folder argument missing!'); + const pluginPath = process.argv[2] + || guessPluginPath() + || fail('Folder argument missing! (you can also set the MOODLE_APP_BEHAT_PLUGIN_PATH env variable)'); const excludeFeatures = process.argv.some(arg => arg === '--exclude-features'); const exclusions = excludeFeatures ? [