From aef0442e9d768150ba07909969952b2a7f8034bb Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Fri, 15 Jan 2021 11:24:12 -0800 Subject: [PATCH] Add rate-limit warning --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index 1af0d73..b17cec1 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -382,7 +382,7 @@ pub async fn request(path: &str) -> Result { _ => Err((false, "Page not found".to_string())), } } - Err(_) => Err((false, "Couldn't send request to Reddit".to_string())), + Err(_) => Err((false, "Couldn't send request to Reddit, this instance may be being rate-limited. Try another.".to_string())), } }