mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Improve error diagnostic in LocalizationHandle
This commit is contained in:
parent
f2df1adf27
commit
e22babc51b
@ -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,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user