From 1fd688eeed78ba47567920cd6e7414dca7931957 Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Fri, 15 Jan 2021 20:57:51 -0800 Subject: [PATCH] Improve awc error log --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index 96dafaa..c6e957b 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, 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())) }, } }