diff --git a/test-app/build-tools/jsparser/js_parser.js b/test-app/build-tools/jsparser/js_parser.js index 3b65fa3c2..9cac6fbf5 100644 --- a/test-app/build-tools/jsparser/js_parser.js +++ b/test-app/build-tools/jsparser/js_parser.js @@ -194,6 +194,9 @@ function traverseAndAnalyseFilesDir(inputDir, err) { } function traverseFiles(filesToTraverse) { + if (filesToTraverse.length === 0) { + throw "no file was found in " + inputDir + ". Something must be wrong with the webpack build"; + } for (let i = 0; i < filesToTraverse.length; i += 1) { const fp = filesToTraverse[i]; logger.info("Visiting JavaScript file: " + fp);