0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2024-12-22 14:35:46 +00:00

misc: Improve broken locale.json crash message

This commit is contained in:
Evan Husted 2024-12-21 18:58:53 -06:00
parent 77ef82d92a
commit e15a207656

View file

@ -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))