Skip to content

Commit

Permalink
bind-impl: missing ampStateEl is a user error (#36113)
Browse files Browse the repository at this point in the history
  • Loading branch information
samouri authored Sep 28, 2021
1 parent 4377f31 commit 29b3fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/amp-bind/0.1/bind-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ export class Bind {
`#${escapeCssSelectorIdent(stateId)}`
);
if (!ampStateEl) {
throw new Error(`#${stateId} does not exist.`);
throw user().createError(TAG, `#${stateId} does not exist.`);
}

return whenUpgradedToCustomElement(ampStateEl)
Expand Down

0 comments on commit 29b3fb4

Please sign in to comment.