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

Commit

Permalink
updating error message from PR #232
Browse files Browse the repository at this point in the history
  • Loading branch information
caridy committed Oct 11, 2016
1 parent c96a6f6 commit d177d17
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 (" + data.locale + ") doesn't identify itself with a valid language tag");
throw new Error(`Invalid language tag "${data.locale}" when calling __addLocaleData("${data.locale}", ...) to register new locale data.`);

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

0 comments on commit d177d17

Please sign in to comment.