Skip to content

Commit

Permalink
Merge pull request #540 from anstadnik/update_tests
Browse files Browse the repository at this point in the history
update tests
  • Loading branch information
anstadnik authored Jun 5, 2024
2 parents 9525104 + 38d1d00 commit 97fd165
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/src/model/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,15 @@ pub async fn get_data_from_web() -> anyhow::Result<MultilangFs> {
lang.name()
);
let rdr = Reader::from_reader(reqwest::get(url).await?.bytes().await?.reader());
ret.insert(lang, get_finite_state(rdr, lang)?);
ret.insert(
lang,
get_finite_state(rdr, lang).with_context(|| {
format!(
"Error in parsing data for language {lang}, SHEET_ID: {}",
env!("SHEET_ID").chars().take(5).collect::<String>() + "..."
)
})?,
);
}
Ok(ret)
}

0 comments on commit 97fd165

Please sign in to comment.