mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-29 02:59:26 +01:00
improve reddit error messages
This commit is contained in:
parent
ac900088a2
commit
840a7e28ad
@ -300,6 +300,12 @@ input[type="submit"]:hover,
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
.reddit-error {
|
||||||
|
text-align: center;
|
||||||
|
float: left;
|
||||||
|
width: 100%;
|
||||||
|
padding: 37px 0px 20px 0px;
|
||||||
|
}
|
||||||
footer {
|
footer {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin: 2.5% 0 0;
|
margin: 2.5% 0 0;
|
||||||
|
@ -6,11 +6,13 @@ html
|
|||||||
body(class=""+ (user_preferences.theme === 'auto' ? 'dark' : user_preferences.theme) + "")
|
body(class=""+ (user_preferences.theme === 'auto' ? 'dark' : user_preferences.theme) + "")
|
||||||
include includes/topbar.pug
|
include includes/topbar.pug
|
||||||
if json === null
|
if json === null
|
||||||
h2 error
|
.reddit-error
|
||||||
p #{JSON.stringify(http_status_code)}
|
h2 Error
|
||||||
p #{JSON.stringify(http_statustext)}
|
p #{JSON.stringify(http_status_code)}
|
||||||
if http_status_code == "401" || http_status_code == "503"
|
p #{JSON.stringify(http_statustext)}
|
||||||
p This error is probably because Reddit itself is down.
|
if http_status_code == "401" || http_status_code == "503"
|
||||||
|
p This error is probably caused because Reddit itself is down or having server issues.
|
||||||
|
p Checking <a href="https://www.redditstatus.com">https://www.redditstatus.com</a> might give some information.
|
||||||
else
|
else
|
||||||
- var subreddit = ''
|
- var subreddit = ''
|
||||||
if(user_preferences.subbed_subreddits && Array.isArray(user_preferences.subbed_subreddits))
|
if(user_preferences.subbed_subreddits && Array.isArray(user_preferences.subbed_subreddits))
|
||||||
|
Loading…
Reference in New Issue
Block a user