bundled translation: Better error reporting

forward the error up the stack instead of panicking while producing the llr
This commit is contained in:
Olivier Goffart 2024-11-19 18:44:09 +01:00
parent 3f8084cdc0
commit 73b549a42c
6 changed files with 21 additions and 13 deletions

View file

@ -708,7 +708,7 @@ pub fn generate(
}
}
let llr = llr::lower_to_item_tree::lower_to_item_tree(&doc, compiler_config);
let llr = llr::lower_to_item_tree::lower_to_item_tree(&doc, compiler_config)?;
#[cfg(feature = "bundle-translations")]
if let Some(translations) = &llr.translations {