mirror of
https://github.com/MingweiSamuel/Riven.git
synced 2024-12-27 03:16:33 +00:00
update test error messages
This commit is contained in:
parent
0d04dcc907
commit
9d481f0c70
1 changed files with 3 additions and 3 deletions
|
@ -165,7 +165,7 @@ pub async fn tft_match_v1_get(
|
||||||
let p = riot_api().tft_match_v1().get_match(route, matche);
|
let p = riot_api().tft_match_v1().get_match(route, matche);
|
||||||
let m = p
|
let m = p
|
||||||
.await
|
.await
|
||||||
.map_err(|e| format!("Failed to get match {}: {:?}", matche, e))?
|
.map_err(|e| format!("Failed to get tft match {}: {:?}", matche, e))?
|
||||||
.ok_or(format!("Match {} not found.", matche))?;
|
.ok_or(format!("Match {} not found.", matche))?;
|
||||||
|
|
||||||
if matche != &*m.metadata.match_id {
|
if matche != &*m.metadata.match_id {
|
||||||
|
@ -265,7 +265,7 @@ pub async fn match_v5_get_timeline(
|
||||||
let p = riot_api().match_v5().get_timeline(route, matche);
|
let p = riot_api().match_v5().get_timeline(route, matche);
|
||||||
let m = p
|
let m = p
|
||||||
.await
|
.await
|
||||||
.map_err(|e| format!("Failed to get match {}: {:?}", matche, e))?
|
.map_err(|e| format!("Failed to get match timeline {}: {:?}", matche, e))?
|
||||||
.ok_or(format!("Match {} not found.", matche))?;
|
.ok_or(format!("Match {} not found.", matche))?;
|
||||||
if matche != &*m.metadata.match_id {
|
if matche != &*m.metadata.match_id {
|
||||||
return Err(format!(
|
return Err(format!(
|
||||||
|
@ -456,7 +456,7 @@ pub async fn val_match_v1_get(
|
||||||
let p = riot_api().val_match_v1().get_match(route, matche);
|
let p = riot_api().val_match_v1().get_match(route, matche);
|
||||||
let m = p
|
let m = p
|
||||||
.await
|
.await
|
||||||
.map_err(|e| format!("Failed to get match {}: {:?}", matche, e))?
|
.map_err(|e| format!("Failed to get val match {}: {:?}", matche, e))?
|
||||||
.ok_or(format!("Match {} not found.", matche))?;
|
.ok_or(format!("Match {} not found.", matche))?;
|
||||||
|
|
||||||
// TODO(mingwei): Check the match a bit.
|
// TODO(mingwei): Check the match a bit.
|
||||||
|
|
Loading…
Reference in a new issue