mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +00:00
feat: Clarifying which culture failed to load when throwing an exception
This commit is contained in:
parent
1a027bcea0
commit
dbad18925f
1 changed files with 2 additions and 2 deletions
|
|
@ -506,7 +506,7 @@ namespace ICD.Common.Utils.Globalization
|
|||
|
||||
CultureTypes cultureTypes;
|
||||
if (!s_DictAvailableCulturesByLcid.TryGetValue(culture, out cultureTypes))
|
||||
throw new ArgumentException("not supported");
|
||||
throw new ArgumentException(string.Format("Culture {0} not supported", culture));
|
||||
|
||||
if (!s_IsDatabasePresent || (cultureTypes & CultureTypes.InstalledWin32Cultures) != 0)
|
||||
{
|
||||
|
|
@ -551,7 +551,7 @@ namespace ICD.Common.Utils.Globalization
|
|||
|
||||
CultureTypes cultureTypes;
|
||||
if (!s_DictAvailableCulturesByName.TryGetValue(name, out cultureTypes))
|
||||
throw new ArgumentException("not supported");
|
||||
throw new ArgumentException(string.Format("Culture {0} not supported", name));
|
||||
|
||||
if (!s_IsDatabasePresent || (cultureTypes & CultureTypes.InstalledWin32Cultures) != 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue