Validation: Improve developer messaging for invalid blocks #2837
Labels
[Feature] Parsing
Related to efforts to improving the parsing of a string of data and converting it into a different f
[Type] Task
Issues or PRs that have been broken down into an individual action to take
Related: #2210, #2056, #1929
Prior to #2210, when a block was marked as invalid, a console message was logged explaining the difference between the expected and actual content. With the move to creating a formal tokenizing validator in #2210, this was temporarily dropped with the intention of being brought back. Alas, this has not yet been reimplemented, thus the creation of this issue.
Task: Potentially using the previous logging or an explored diff display as inspiration, add messaging when block validation fails. This can probably be added directly into
isValidBlock
with a condition on the current environment.Workaround: You can add a breakpoint on each of the failing checks to see where validation is bailing:
In each case, the comments above should explain the reason for failure.
The text was updated successfully, but these errors were encountered: