Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit d177d17

Browse files
committed
updating error message from PR #232
1 parent c96a6f6 commit d177d17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ defineProperty(Intl, '__applyLocaleSensitivePrototypes', {
5656
defineProperty(Intl, '__addLocaleData', {
5757
value: function (data) {
5858
if (!IsStructurallyValidLanguageTag(data.locale))
59-
throw new Error("Object passed (" + data.locale + ") doesn't identify itself with a valid language tag");
59+
throw new Error(`Invalid language tag "${data.locale}" when calling __addLocaleData("${data.locale}", ...) to register new locale data.`);
6060

6161
addLocaleData(data, data.locale);
6262
}

0 commit comments

Comments
 (0)