Skip to content

Commit 29b3fb4

Browse files
authored
bind-impl: missing ampStateEl is a user error (#36113)
1 parent 4377f31 commit 29b3fb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/amp-bind/0.1/bind-impl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ export class Bind {
550550
`#${escapeCssSelectorIdent(stateId)}`
551551
);
552552
if (!ampStateEl) {
553-
throw new Error(`#${stateId} does not exist.`);
553+
throw user().createError(TAG, `#${stateId} does not exist.`);
554554
}
555555

556556
return whenUpgradedToCustomElement(ampStateEl)

0 commit comments

Comments
 (0)