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

Pass data.locale to Error message #232

Merged
merged 1 commit into from
Oct 11, 2016
Merged

Conversation

i8ramin
Copy link
Contributor

@i8ramin i8ramin commented Sep 27, 2016

Passing in the data.locale variable will help with debugging


This change is Reviewable

Passing in the `data.locale` variable will help with debugging
@@ -56,7 +56,7 @@ defineProperty(Intl, '__applyLocaleSensitivePrototypes', {
defineProperty(Intl, '__addLocaleData', {
value: function (data) {
if (!IsStructurallyValidLanguageTag(data.locale))
throw new Error("Object passed doesn't identify itself with a valid language tag");
throw new Error("Object passed (" + data.locale + ") doesn't identify itself with a valid language tag");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it is a good time to use a better message altogether, but in any case, I'm good with this.

@caridy caridy added this to the v1.3 milestone Oct 11, 2016
@caridy caridy merged commit b74fbd0 into andyearnshaw:master Oct 11, 2016
caridy added a commit that referenced this pull request Oct 11, 2016
@caridy
Copy link
Collaborator

caridy commented Oct 11, 2016

this is now merged, and the message was updated here d177d17

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants