Improve the exception message to direct people to all the possible values

This commit is contained in:
Rafael Mendonça França 2017-02-07 10:41:44 -03:00
parent d7bbe075f9
commit 9b19861ec0
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948

@ -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