Added a message for invalid YAML.