Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott J. Miles committed Sep 12, 2013
1 parent 7c0bdec commit f6982a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CustomElements.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ if (useNative) {
if (name.indexOf('-') < 0) {
// TODO(sjmiles): replace with more appropriate error (EricB can probably
// offer guidance)
throw new Error('document.register: first argument `name` must contain a dash (\'-\'). Argument was \'' + String(name) + '\'.');
throw new Error('document.register: first argument (\'name\') must contain a dash (\'-\'). Argument provided was \'' + String(name) + '\'.');
}
// record name
definition.name = name;
Expand Down

0 comments on commit f6982a5

Please sign in to comment.