We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9cce65 commit 3b45ff3Copy full SHA for 3b45ff3
src/riot_utils.rs
@@ -13,7 +13,6 @@ macro_rules! riot_api {
13
match result {
14
Result::Err(mut e) => {
15
let status_code = { e.status_code().clone() };
16
- error!("Error: {:?}", e);
17
return match status_code {
18
None => Result::Err(anyhow!(
19
"{}",
@@ -26,7 +25,9 @@ macro_rules! riot_api {
26
25
None => String::from("<no response>"),
27
}
28
)),
29
- Some(http::status::StatusCode::FORBIDDEN) => panic!("The Riot Key is bad."),
+ Some(http::status::StatusCode::FORBIDDEN) => {
+ error!("The Riot Key is bad, or riot cooked the api again.")
30
+ }
31
Some(http::status::StatusCode::TOO_MANY_REQUESTS) => match e.take_response() {
32
Some(r) => {
33
let wait_time = Duration::from_secs(
0 commit comments