mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
KeyError from Hash#fetch should inspect key.
To distinguish string keys and symbol keys.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user