mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-27 17:31:50 +02:00
Merge pull request #3770 from matrix-org/travis/babel7-wp-skin-dbg
Add a bit of debugging to incorrect components in the Skinner
This commit is contained in:
commit
8a8b23eaed
@ -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…
x
Reference in New Issue
Block a user