diff --git a/provider/datagen/src/bin/datagen/mod.rs b/provider/datagen/src/bin/datagen/mod.rs index 0265e273fe6..9bc8ba1721b 100644 --- a/provider/datagen/src/bin/datagen/mod.rs +++ b/provider/datagen/src/bin/datagen/mod.rs @@ -120,8 +120,8 @@ fn main() -> eyre::Result<()> { LanguageIdentifiers(lids) => lids, LocaleFamilies(lfs) => lfs .into_iter() - .map(|family| family.write_to_string().parse()) - .collect::, icu_locid::ParserError>>()?, + .map(|family| family.write_to_string().parse().wrap_err(family)) + .collect::>>()?, }; driver = driver.with_locales_no_fallback(locale_families, Default::default()); } else {