Actions
Bug #16599
closeddid_you_mean is not activated for NameError and KeyError
Description
This document claims that the did_you_mean gem responds to NameError, NoMethodError, and KeyError, but it actually seems to only respond to NoMethodError.
foo()
# >> NoMethodError: undefined method `foo' for main:Object
# >> Did you mean? for
foo
# >> NameError: undefined local variable or method `foo' for main:Object
Foo
# >> NameError: uninitialized constant Foo
{foo: 1}.fetch(:bar)
# >> KeyError: key not found: :bar
Actions
Like0
Like0Like0Like0