lib/wcc/contentful/app/exceptions.rb in wcc-contentful-app-1.2.0 vs lib/wcc/contentful/app/exceptions.rb in wcc-contentful-app-1.2.1
- old
+ new
@@ -23,10 +23,10 @@
def self.join_msg_keys(hash)
ret =
hash.map do |k, v|
if v.is_a?(Hash)
msgs = join_msg_keys(v)
- msgs.map { |msg| Message.new(k.to_s + '.' + msg.path, msg.error) }
+ msgs.map { |msg| Message.new("#{k}.#{msg.path}", msg.error) }
else
v.map { |msg| Message.new(k.to_s, msg) }
end
end
ret.flatten(1)