mirror of https://github.com/vector-im/riot-web
Add a bit of debugging to incorrect components in the Skinner
parent
38e75aaae0
commit
56adb8244b
|
@ -58,7 +58,7 @@ class Skinner {
|
||||||
// components have to be functions.
|
// components have to be functions.
|
||||||
const validType = typeof comp === 'function';
|
const validType = typeof comp === 'function';
|
||||||
if (!validType) {
|
if (!validType) {
|
||||||
throw new Error(`Not a valid component: ${name}.`);
|
throw new Error(`Not a valid component: ${name} (type = ${typeof(comp)}).`);
|
||||||
}
|
}
|
||||||
return comp;
|
return comp;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue