If the pantheon2.yml file contains an error, the 'preview' command can sometimes fail or produce confusing results for users. Rather than exposing raw Python error output and providing no input on how to correct those errors, we should run the native yaml_validation function on the yaml file before even attempting to generate previews.
If the pantheon2.yml file contains an error, the 'preview' command can sometimes fail or produce confusing results for users. Rather than exposing raw Python error output and providing no input on how to correct those errors, we should run the native yaml_validation function on the yaml file before even attempting to generate previews.