add more detailed error message

This commit is contained in:
undergroundwires
2020-09-12 00:14:27 +01:00
parent b6ccb5927a
commit 1f11c39773

View File

@@ -52,7 +52,7 @@ function parseCategoryChild(
children.subScripts.push(script); children.subScripts.push(script);
} else { } else {
throw new Error(`Child element is neither a category or a script. throw new Error(`Child element is neither a category or a script.
Parent: ${parent.category}, element: ${categoryOrScript}`); Parent: ${parent.category}, element: ${JSON.stringify(categoryOrScript)}`);
} }
} }