mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
bundled translation: Better error reporting
forward the error up the stack instead of panicking while producing the llr
This commit is contained in:
parent
3f8084cdc0
commit
73b549a42c
6 changed files with 21 additions and 13 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue