summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorStan Lo <stan001212@gmail.com>2023-02-27 19:07:14 +0800
committergit <svn-admin@ruby-lang.org>2023-02-27 11:07:19 +0000
commit0aa50a03b1ea8d37069ae57c469f43860abbcf05 (patch)
treee489108876b1dd857eb888f9679f89196c443dcb /vm_core.h
parent4f611df3f7f61fbdf83b02121dd1edea0b7c68ec (diff)
[ruby/irb] Provide more useful message when
`IRB::Inspector#inspect_value` errors (https://github.com/ruby/irb/pull/511) **Before** ``` irb(main):001:0> c = Cat.new "foo" (Object doesn't support #inspect) => ``` **After** ``` irb(main):001:0> c = Cat.new "foo" An error occurred when inspecting the object: #<NoMethodError: undefined method `is_a?' for foo:Cat if obj.is_a?(String) ^^^^^^> Result of Kernel#inspect: #<Cat:0x0000000109090d80 @name="foo"> => ```
Diffstat (limited to 'vm_core.h')
0 files changed, 0 insertions, 0 deletions