lib/confset/sources/yaml_source.rb in confset-1.0.2 vs lib/confset/sources/yaml_source.rb in confset-1.0.3

- old
+ new

@@ -22,13 +22,13 @@ result = YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(file_contents) : YAML.load(file_contents) end result || {} - rescue Psych::SyntaxError => e - raise "YAML syntax error occurred while parsing #{@path}. " \ - "Please note that YAML must be consistently indented using spaces. Tabs are not allowed. " \ - "Error: #{e.message}" + rescue Psych::SyntaxError => e + raise "YAML syntax error occurred while parsing #{@path}. " \ + "Please note that YAML must be consistently indented using spaces. Tabs are not allowed. " \ + "Error: #{e.message}" end end end end