1
0
Fork 0
mirror of https://github.com/omniauth/omniauth.git synced 2022-11-09 12:31:49 -05:00

Closes #55 - On Failure now conforms to Rack spec, sets omniauth.error.type and omniauth.error.strategy

This commit is contained in:
Michael Bleigh 2010-11-28 18:51:22 -06:00
parent 8c6a06b27c
commit e05300b5f2

View file

@ -103,7 +103,10 @@ module OmniAuth
def fail!(message_key, exception = nil)
self.env['omniauth.error'] = exception
OmniAuth.config.on_failure.call(self.env, message_key.to_sym)
self.env['omniauth.error.type'] = message_key.to_sym
self.env['omniauth.error.strategy'] = self
OmniAuth.config.on_failure.call(self.env)
end
end
end