From 1f11c39773c12eccfb3efb898b58c2f6f37ab9ca Mon Sep 17 00:00:00 2001 From: undergroundwires Date: Sat, 12 Sep 2020 00:14:27 +0100 Subject: [PATCH] add more detailed error message --- src/application/Parser/CategoryParser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/application/Parser/CategoryParser.ts b/src/application/Parser/CategoryParser.ts index c52c9ee6..734cc430 100644 --- a/src/application/Parser/CategoryParser.ts +++ b/src/application/Parser/CategoryParser.ts @@ -52,7 +52,7 @@ function parseCategoryChild( children.subScripts.push(script); } else { throw new Error(`Child element is neither a category or a script. - Parent: ${parent.category}, element: ${categoryOrScript}`); + Parent: ${parent.category}, element: ${JSON.stringify(categoryOrScript)}`); } }