Raise errors in YAML parsing when they are encountered