Skip to content

Commit

Permalink
improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
gigitux committed May 17, 2024
1 parent c5e7e9b commit 9aba910
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions validate-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ done < <(find "$base_dir" -type f -name "*.js" ! -name "*.min.js" -print0)

# Exit with an error code if any .js file is missing its corresponding .min.js file
if [ "$error_flag" -ne 0 ]; then
echo "Error: the ZIP could not be built because minified scripts are missing. Please ensure you are using the correct versions of NPM and Node.js."
exit 1
else
echo "All .js files within $base_dir have corresponding .min.js files."
Expand Down

0 comments on commit 9aba910

Please sign in to comment.