From 86ef6a8e520aba4142b7675b21fa8e6ff7282898 Mon Sep 17 00:00:00 2001 From: Jacob Oliver Date: Mon, 22 Apr 2024 13:13:15 -0400 Subject: [PATCH] Throw a useful error message if the normalizer didn't load --- 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; }