From 883e1a9d6a9bcba33b51b27340bfe1783210e87a Mon Sep 17 00:00:00 2001 From: Matthew Kilgore Date: Fri, 7 Aug 2020 20:36:45 -0400 Subject: [PATCH] infrastruture: include the class name of the component where children is provided --- js/src/common/Component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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` ); }