mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03: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
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ class Skinner {
|
|||
// components have to be functions.
|
||||
const validType = typeof comp === 'function';
|
||||
if (!validType) {
|
||||
throw new Error(`Not a valid component: ${name}.`);
|
||||
throw new Error(`Not a valid component: ${name} (type = ${typeof(comp)}).`);
|
||||
}
|
||||
return comp;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue