changeset 87:b01b5265e6d1

Whoops, forgot to rescue somewhere else
author nanaya <me@myconan.net>
date Mon, 27 Jun 2016 06:01:39 +0900
parents 5bfc986200db
children cf9a9ce2d034
files app/controllers/tweets_controller.rb
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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