Add rate-limit warning

This commit is contained in:
spikecodes 2021-01-15 11:24:12 -08:00
parent 21ff8d7b6f
commit aef0442e9d

View File

@ -382,7 +382,7 @@ pub async fn request(path: &str) -> Result<Value, String> {
_ => Err((false, "Page not found".to_string())), _ => 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())),
} }
} }