Last active
December 21, 2015 04:08
-
-
Save sandyxu/6247027 to your computer and use it in GitHub Desktop.
OmniAuth should set config.on_failure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 在OmniAuth时触发异常被web server捕获直接返回500页面,如果想捕获并处理要做如下设置 | |
# config/initializers/omniauth.rb | |
OmniAuth.config.on_failure = AuthenticationsController.action(:failure) | |
# log 输出 | |
OmniAuth.config.logger = Rails.logger |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment