1
0
mirror of https://github.com/flarum/core.git synced 2025-08-11 10:55:47 +02:00

infrastruture: include the class name of the component where children is provided

This commit is contained in:
Matthew Kilgore
2020-08-07 20:36:45 -04:00
committed by Franz Liedke
parent 2ac2edbbad
commit 883e1a9d6a

View File

@@ -68,7 +68,9 @@ export default abstract class Component<T extends ComponentAttrs = any> 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`
);
}