Skip to content

Commit

Permalink
Throw a useful error message if the normalizer didn't load (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeOliver28 authored Apr 23, 2024
1 parent 9c84e0c commit f0b50f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Generic/UtilSil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f0b50f3

Please sign in to comment.