lib/pears/provider/base.rb in pears-0.0.11 vs lib/pears/provider/base.rb in pears-0.1.0

- old
+ new

@@ -23,9 +23,13 @@ def parse_yaml(yaml_data) yaml_data = YAML.load(yaml_data) raise Pears::InvalidProviderData if yaml_data.is_a? String yaml_data.with_indifferent_access + rescue Psych::SyntaxError => e + logger ||= defined?(Rails) ? Rails.logger : Logger.new(STDOUT) + logger.warn "#{e.class} #{e.message}" + raise Pears::InvalidProviderData end end end end