Improve error diagnostic in LocalizationHandle

This commit is contained in:
juliancoffee 2022-08-07 15:13:59 +03:00
parent f2df1adf27
commit e22babc51b

View File

@ -418,8 +418,7 @@ impl LocalizationHandle {
fallback: if is_default {
None
} else {
// TODO: shouldn't this panic?
Language::load(&default_key).ok()
Some(Language::load(&default_key)?)
},
use_english_fallback: false,
})