From f0b50f310b021f69d4b116ac6126d1a50d79fb96 Mon Sep 17 00:00:00 2001 From: Jake Oliver Date: Tue, 23 Apr 2024 10:39:49 -0400 Subject: [PATCH] Throw a useful error message if the normalizer didn't load (#27) --- Src/Generic/UtilSil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Generic/UtilSil.cpp b/Src/Generic/UtilSil.cpp index 7f05ca64f3..347c57896b 100644 --- a/Src/Generic/UtilSil.cpp +++ b/Src/Generic/UtilSil.cpp @@ -385,7 +385,7 @@ const Normalizer2* SilUtil::GetIcuNormalizer(UNormalizationMode mode) } if (!U_SUCCESS(uerr)) - ThrowHr(E_FAIL); + ThrowInternalError(E_FAIL, "Failed to load normalizer. Check ICU_DATA environment variable."); return norm; }