Improved error message for `val-content-v1`

pull/62/head
Mingwei Samuel 2023-09-21 23:30:27 -07:00
parent 9b08e058b7
commit e67ffff627
1 changed files with 1 additions and 1 deletions

View File

@ -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