From e67ffff6277f24ea852559acddcc32e655fb9faf Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Thu, 21 Sep 2023 23:30:27 -0700 Subject: [PATCH] Improved error message for `val-content-v1` --- riven/tests/tests_val_latam.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riven/tests/tests_val_latam.rs b/riven/tests/tests_val_latam.rs index d1d6eef..14f3d56 100644 --- a/riven/tests/tests_val_latam.rs +++ b/riven/tests/tests_val_latam.rs @@ -15,7 +15,7 @@ async_tests! { my_runner { val_content_ranked_test: async { let p = RIOT_API.val_content_v1().get_content(ROUTE, Some("zh-CN")); - let contents = p.await.map_err(|e| e.to_string())?; + let contents = p.await.map_err(|e| format!("Failed to get content: {}", e))?; // Find the LAST active act, via `.rev().find(...)`. // Added filter when parent id is 0000... as there are multiple that are active, the last active seems to be episode 5