1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +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:
Travis Ralston
2019-12-25 15:15:34 -07:00
committed by GitHub

View File

@@ -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;
}