Skip to content
Browse files

Catch all errors

  • Loading branch information...
1 parent 183c7c5 commit 8fd70fb3534912523513c3289b46316389ed9b24 Jesse Stuart committed Oct 4, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/omniauth/strategies/tent.rb
View
4 lib/omniauth/strategies/tent.rb
@@ -38,6 +38,8 @@ def request_phase
end
rescue AppCreateFailure => e
fail!(:app_create_failure, e)
+ rescue => e
+ fail!(:unknown_error, e)
end
def callback_phase
@@ -50,6 +52,8 @@ def callback_phase
fail!(:app_auth_create_failure, e)
rescue StateMissmatchError => e
fail!(:state_missmatch, e)
+ rescue => e
+ fail!(:unknown_error, e)
end
private

0 comments on commit 8fd70fb

Please sign in to comment.
Something went wrong with that request. Please try again.