1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Add a bit of debugging to incorrect components in the Skinner

This commit is contained in:
Travis Ralston
2019-12-20 13:58:37 -07:00
parent 38e75aaae0
commit 56adb8244b

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