From ac900088a2de39b7e7a0266352520a93f4526f9f Mon Sep 17 00:00:00 2001 From: teddit Date: Sun, 28 Mar 2021 15:30:24 +0200 Subject: [PATCH] add error notice if reddit is down --- views/index.pug | 2 ++ 1 file changed, 2 insertions(+) diff --git a/views/index.pug b/views/index.pug index dddf000..01831b2 100644 --- a/views/index.pug +++ b/views/index.pug @@ -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))