aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/errors_controller.rb
diff options
context:
space:
mode:
authorrhenium <re4k@re4k.info>2013-05-30 00:54:47 +0900
committerrhenium <re4k@re4k.info>2013-05-30 00:54:47 +0900
commit75e30f750533af57057fd5a9b7f725218f4be7d0 (patch)
tree9f6f379530d75aeb12b705edbb00c98d03ac8271 /app/controllers/errors_controller.rb
parent8d0657441ad76b23684d13f8790df2a3c0cb84ff (diff)
downloadaclog-75e30f750533af57057fd5a9b7f725218f4be7d0.tar.gz
add private account (!= protected Twitter account) feature
Diffstat (limited to 'app/controllers/errors_controller.rb')
-rw-r--r--app/controllers/errors_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb
index 5ea964d..1a7eed9 100644
--- a/app/controllers/errors_controller.rb
+++ b/app/controllers/errors_controller.rb
@@ -31,6 +31,9 @@ class ErrorsController < ApplicationController
when Aclog::Exceptions::OAuthEchoUnauthorized
@status = 401
@message = "OAuth Echo 認証に失敗しました。"
+ when Aclog::Exceptions::AccountPrivate
+ @status = 403
+ @message = "ユーザーの best は非公開です"
when ActionController::RoutingError
@status = 404
@message = "このページは存在しません。"