add error notice if reddit is down

This commit is contained in:
teddit 2021-03-28 15:30:24 +02:00
parent 26dc6be763
commit ac900088a2
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,8 @@ html
h2 error
p #{JSON.stringify(http_status_code)}
p #{JSON.stringify(http_statustext)}
if http_status_code == "401" || http_status_code == "503"
p This error is probably because Reddit itself is down.
else
- var subreddit = ''
if(user_preferences.subbed_subreddits && Array.isArray(user_preferences.subbed_subreddits))