lib/config/validation/error.rb in config-1.7.1 vs lib/config/validation/error.rb in config-1.7.2

- old
+ new

@@ -3,10 +3,10 @@ class Error < StandardError def self.format(v_res) flatten_hash(v_res.messages).map do |field, msgs| "#{' ' * 2}#{field}: #{msgs.join('; ')}" - end.join('\n') + end.join("\n") end def self.flatten_hash(h, acc={}, pref=[]) h.inject(acc) do |a, (k, v)| if v.is_a?(Hash)