Fix error log
This commit is contained in:
parent
59021b9331
commit
3a9b2dba32
@ -440,7 +440,6 @@ pub async fn request(path: &str) -> Result<Value, String> {
|
|||||||
}
|
}
|
||||||
// If failed to send request
|
// If failed to send request
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
dbg!(format!("{} - {}", url, e));
|
dbg!(format!("{} - {}", url, e));
|
||||||
Err("Couldn't send request to Reddit, this instance may be being rate-limited. Try another.".to_string())
|
Err("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