aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/errors/error.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/errors/error.html.haml')
-rw-r--r--app/views/errors/error.html.haml20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/views/errors/error.html.haml b/app/views/errors/error.html.haml
new file mode 100644
index 0000000..8bc508f
--- /dev/null
+++ b/app/views/errors/error.html.haml
@@ -0,0 +1,20 @@
+%h1= response.status
+.lead
+ - case @exception
+ - when Aclog::Exceptions::TweetNotFound
+ ツイートが見つかりませんでした。
+ - when Aclog::Exceptions::UserNotFound
+ ユーザーが見つかりませんでした。
+ - when Aclog::Exceptions::UserNotRegistered
+ ユーザーは aclog に登録していません。
+ - when Aclog::Exceptions::UserProtected
+ ユーザーは非公開です。
+ - when Aclog::Exceptions::LoginRequired
+ このページの表示にはログインが必要です。
+ - when ActionController::RoutingError
+ 不正な URL です。
+ - else
+ - if response.status == 404
+ Not Found (Unknown)
+ - else
+ Internal Error (Unknown)