From e15a207656b16b122a4f0f836ac10de412a66a26 Mon Sep 17 00:00:00 2001 From: Evan Husted Date: Sat, 21 Dec 2024 18:58:53 -0600 Subject: [PATCH] misc: Improve broken locale.json crash message --- src/Ryujinx/Common/LocaleManager.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Ryujinx/Common/LocaleManager.cs b/src/Ryujinx/Common/LocaleManager.cs index 613d92e0d..f29efb15a 100644 --- a/src/Ryujinx/Common/LocaleManager.cs +++ b/src/Ryujinx/Common/LocaleManager.cs @@ -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(locale.ID, out var localeKey))