Actions
Feature #15999
openKeyError#inspect does not contain receiver and key
Status:
Open
Assignee:
-
Target version:
-
Description
Some exception classes accept receiver:
, but #inspect
does not show such information.
How about adding receiver (and key) to #inspect
?
KeyError.new("message", receiver: :receiver, key: :key).inspect #=> "#<KeyError: message>"
NameError.new("message", receiver: :receiver).inspect #=> "#<NameError: message>"
NoMethodError.new("message", receiver: :receiver).inspect #=> "#<NoMethodError: message>"
No data to display
Actions
Like0