mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +00:00
feat: Clarifying which culture failed to load when throwing an exception
This commit is contained in:
@@ -506,7 +506,7 @@ namespace ICD.Common.Utils.Globalization
|
|||||||
|
|
||||||
CultureTypes cultureTypes;
|
CultureTypes cultureTypes;
|
||||||
if (!s_DictAvailableCulturesByLcid.TryGetValue(culture, out 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)
|
if (!s_IsDatabasePresent || (cultureTypes & CultureTypes.InstalledWin32Cultures) != 0)
|
||||||
{
|
{
|
||||||
@@ -551,7 +551,7 @@ namespace ICD.Common.Utils.Globalization
|
|||||||
|
|
||||||
CultureTypes cultureTypes;
|
CultureTypes cultureTypes;
|
||||||
if (!s_DictAvailableCulturesByName.TryGetValue(name, out 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)
|
if (!s_IsDatabasePresent || (cultureTypes & CultureTypes.InstalledWin32Cultures) != 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user