mbleigh / twitter-auth

Standard authentication stack for Rails using Twitter to log in.
355 stars 48 forks source link

Catch the exception while twitter service is under maintaince. #12

Open sishen opened 15 years ago

sishen commented 15 years ago

Sometimes twitter is under maintaince and as a result the app can't request the oauth token. We need to do something instead of directly raising the exception to the top, such as catch the exception in the SessionsController#new,

rescue Exception => e authentication_failed("We're currently experiencing issues with Twitter's OAuth Service. Please try later.") and return

mbleigh commented 15 years ago

Yeah, I noticed that as well. Will work in a catch for that sometime soon.