Add rate-limit warning
This commit is contained in:
parent
21ff8d7b6f
commit
aef0442e9d
@ -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())),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user