MOBILE-4362 behat: Improve task error message

main
Noel De Martin 2023-08-31 11:37:36 +02:00
parent a6eeacfd88
commit 554cef3116
1 changed files with 3 additions and 1 deletions

View File

@ -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
? [