lib/dense/methods.rb in dense-1.1.0 vs lib/dense/methods.rb in dense-1.1.1

- old
+ new

@@ -124,11 +124,11 @@ def key_error(path, miss) path1 = Dense::Path.make(miss[1] + [ miss[3] ]).to_s.inspect path2 = Dense::Path.make(miss[4]).to_s.inspect - msg = "Found nothing at #{path1}" + msg = "found nothing at #{path1}" msg = "#{msg} (#{path2} remains)" if path2 != '""' make_error(KeyError, msg, path, miss) end @@ -136,10 +136,10 @@ key = miss[3].inspect cla = miss[2].class pat = miss[1].empty? ? 'root' : Dense::Path.make(miss[1]).to_s.inspect - make_error(TypeError, "No key #{key} for #{cla} at #{pat}", path, miss) + make_error(TypeError, "no key #{key} for #{cla} at #{pat}", path, miss) end def miss_error(path, miss) if miss[2].is_a?(Array) && ! miss[3].is_a?(Integer)