Skip to content

Instantly share code, notes, and snippets.

@sandyxu
Last active December 21, 2015 04:08
Show Gist options
  • Save sandyxu/6247027 to your computer and use it in GitHub Desktop.
Save sandyxu/6247027 to your computer and use it in GitHub Desktop.
OmniAuth should set config.on_failure
# 在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