Improve the exception message to direct people to all the possible values
This commit is contained in:
parent
d7bbe075f9
commit
9b19861ec0
@ -287,7 +287,8 @@ class Callback #:nodoc:#
|
||||
def self.build(chain, filter, kind, options)
|
||||
if filter.is_a?(String)
|
||||
raise ArgumentError, <<-MSG.squish
|
||||
Passing string to define callback is not supported. Use proc instead.
|
||||
Passing string to define a callback is not supported. See the `.set_callback`
|
||||
documentation to see supported values.
|
||||
MSG
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user