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

Commit

Permalink
Pass data.locale to Error message
Browse files Browse the repository at this point in the history
Passing in the `data.locale` variable will help with debugging
  • Loading branch information
i8ramin authored Sep 27, 2016
1 parent 6ed6867 commit b74fbd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");

addLocaleData(data, data.locale);
}
Expand Down

0 comments on commit b74fbd0

Please sign in to comment.