Skip to content

Commit 64ebe28

Browse files
committed
update DOMException error message
1 parent f68fd72 commit 64ebe28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TextComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class TextComponent extends NodeComponent<Text> {
3434
* @throws {@link !DOMException} Always
3535
*/
3636
public override append(): typeof this {
37-
throw new DOMException(`TextComponent.append: Cannot add children to a ${this.constructor.name}`);
37+
throw new DOMException(`NodeComponent.append: Cannot add children to a ${this.constructor.name}`);
3838
}
3939

4040
/**

0 commit comments

Comments
 (0)