mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-03-10 17:14:25 +00:00
misc: Improve broken locale.json crash message
This commit is contained in:
parent
77ef82d92a
commit
e15a207656
@ -160,8 +160,7 @@ namespace Ryujinx.Ava.Common.Locale
|
||||
{
|
||||
if (locale.Translations.Count != _localeData.Value.Languages.Count)
|
||||
{
|
||||
Logger.Error?.Print(LogClass.UI, $"Locale key {{{locale.ID}}} is missing languages!");
|
||||
throw new Exception("Missing locale data!");
|
||||
throw new Exception($"Locale key {{{locale.ID}}} is missing languages! Has {locale.Translations.Count} translations, expected {_localeData.Value.Languages.Count}!");
|
||||
}
|
||||
|
||||
if (!Enum.TryParse<LocaleKeys>(locale.ID, out var localeKey))
|
||||
|
Loading…
x
Reference in New Issue
Block a user