# HG changeset patch # User nanaya # Date 1466974899 -32400 # Node ID b01b5265e6d1fa18fc9651de5c80448604849530 # Parent 5bfc986200db83f3068e28fbcf87584b3ef8f005 Whoops, forgot to rescue somewhere else diff -r 5bfc986200db -r b01b5265e6d1 app/controllers/tweets_controller.rb --- a/app/controllers/tweets_controller.rb Mon Jun 27 05:14:10 2016 +0900 +++ b/app/controllers/tweets_controller.rb Mon Jun 27 06:01:39 2016 +0900 @@ -31,5 +31,7 @@ redirect_to tweet_path("#{user.id}/#{user.screen_name}") rescue Twitter::Error::NotFound head :not_found + rescue Twitter::Error::Unauthorized + head :forbidden end end