This repository was archived by the owner on Mar 29, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ class ApplicationController < ActionController::Base
4
4
before_action :set_current_user
5
5
rescue_from Faraday ::ClientError , with : :api_error
6
6
rescue_from Octokit ::Unauthorized , with : :github_unauthorized_error
7
+ rescue_from Octokit ::ServerError , with : :api_error
8
+ rescue_from Octokit ::AccountSuspended , with : :github_suspended_error
7
9
8
10
def current_user
9
11
return unless logged_in?
@@ -62,4 +64,8 @@ def api_error(error)
62
64
def github_unauthorized_error
63
65
render 'pages/github_unauthorized_error' , status : :unauthorized
64
66
end
67
+
68
+ def github_suspended_error
69
+ render 'pages/github_suspended_error' , status : :forbidden
70
+ end
65
71
end
Original file line number Diff line number Diff line change
1
+ < div class ="section ">
2
+ < div class ="container ">
3
+ < div class ="details ">
4
+
5
+ < h1 class ="title is-1 "> Something went wrong when talking to GitHub...</ h1 >
6
+ < p >
7
+ It looks like your GitHub account has been suspended.
8
+ </ p >
9
+
10
+ < br />
11
+ < br />
12
+ < div class ="line-br is-hidden-touch ">
13
+ < span class ="line-br-1 "> -</ span >
14
+ < span class ="line-br-2 "> -</ span >
15
+ </ div >
16
+ < br />
17
+
18
+ < h3 class ="title is-3 ">
19
+ Here's what you should try doing to see if we can get this sorted:
20
+ </ h3 >
21
+
22
+ < p >
23
+ < span class ="highlight "> ●</ span > < a href ="https://support.github.com/contact "> Create a support ticket</ a > .
24
+ </ p >
25
+ < p >
26
+ < span class ="highlight "> ●</ span > If the problem persists, please let us know by emailing
27
+ < a href ="mailto:hacktoberfest@digitalocean.com "> hacktoberfest@digitalocean.com</ a > .
28
+ </ p >
29
+
30
+ </ div >
31
+ </ div >
32
+ </ div >
You can’t perform that action at this time.
0 commit comments