`KeyError` from `Hash#fetch` should inspect key.

To distinguish string keys and symbol keys.
parent e4a9b4a3
......@@ -165,7 +165,7 @@ class Hash
elsif none != NONE
none
else
raise KeyError, "Key not found: #{key}"
raise KeyError, "Key not found: #{key.inspect}"
end
else
self[key]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment