Catch YAML errors.