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

Commit b74fbd0

Browse files
authored
Pass data.locale to Error message
Passing in the `data.locale` variable will help with debugging
1 parent 6ed6867 commit b74fbd0

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 doesn't identify itself with a valid language tag");
59+
throw new Error("Object passed (" + data.locale + ") doesn't identify itself with a valid language tag");
6060

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

0 commit comments

Comments
 (0)