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:
committed by
Franz Liedke
parent
2ac2edbbad
commit
883e1a9d6a
@@ -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`
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user