Skip to content

Commit

Permalink
add more detailed error message
Browse files Browse the repository at this point in the history
  • Loading branch information
undergroundwires committed Sep 11, 2020
1 parent b6ccb59 commit 1f11c39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/application/Parser/CategoryParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`);
}
}

Expand Down

0 comments on commit 1f11c39

Please sign in to comment.