Skip to content

Commit

Permalink
Add error context to lid parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Mar 27, 2024
1 parent 7397d7d commit 608a694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provider/datagen/src/bin/datagen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ fn main() -> eyre::Result<()> {
LanguageIdentifiers(lids) => lids,
LocaleFamilies(lfs) => lfs
.into_iter()
.map(|family| family.write_to_string().parse())
.collect::<Result<Vec<LanguageIdentifier>, icu_locid::ParserError>>()?,
.map(|family| family.write_to_string().parse().wrap_err(family))
.collect::<eyre::Result<Vec<LanguageIdentifier>>>()?,
};
driver = driver.with_locales_no_fallback(locale_families, Default::default());
} else {
Expand Down

0 comments on commit 608a694

Please sign in to comment.