mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-22 07:35:47 +00:00
misc: Improve broken locale.json crash message
This commit is contained in:
parent
77ef82d92a
commit
e15a207656
1 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue