diff --git a/js/src/common/Component.ts b/js/src/common/Component.ts index 91a0524fa..0bf2eeaa2 100644 --- a/js/src/common/Component.ts +++ b/js/src/common/Component.ts @@ -68,7 +68,9 @@ export default abstract class Component implemen if (attrs && 'children' in attrs) { throw new Error( - 'The "children" attribute of attrs should never be used. Either pass children in as the vnode children or rename the attribute' + `[${ + (this.constructor as any).name + }] The "children" attribute of attrs should never be used. Either pass children in as the vnode children or rename the attribute` ); }