app/controllers/sessions_controller.rb in twitter-auth-0.1.13 vs app/controllers/sessions_controller.rb in twitter-auth-0.1.14

- old
+ new

@@ -46,10 +46,10 @@ session[:user_id] = @user.id cookies[:remember_token] = @user.remember_me authentication_succeeded - rescue Net::HTTPServerException, Net::HTTPFatalError => e + rescue Net::HTTPServerException, Net::HTTPFatalError, TwitterAuth::Dispatcher::Error => e case e.message when '401 "Unauthorized"' authentication_failed('This authentication request is no longer valid. Please try again.') and return else authentication_failed('There was a problem trying to authenticate you. Please try again.') and return