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 and aror92 committed Apr 24, 2024
1 parent e4c46c5 commit b6413b7
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 b6413b7

Please sign in to comment.