Actions
Bug #14247
closedThread#fetch raise KeyError without key and receiver
Description
I found this by message without Did you mean?
.
expected:
% ruby -e 'th=Thread.current;th[:foo]=1;th.fetch(:fooo)'
Traceback (most recent call last):
1: from -e:1:in `<main>'
-e:1:in `fetch': key not found: "fooo" (KeyError)
Did you mean? :foo
actual:
% ruby -e 'th=Thread.current;th[:foo]=1;th.fetch(:fooo)'
Traceback (most recent call last):
1: from -e:1:in `<main>'
-e:1:in `fetch': key not found: fooo (KeyError)
Files
Actions
Like0
Like0Like0Like0Like0Like0Like0