Improve awc error log
This commit is contained in:
parent
65543a43b2
commit
1fd688eeed
@ -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, this instance may be being rate-limited. Try another.".to_string())),
|
Err(e) => { dbg!(e); 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