Update generate.sh script to display all errors