linkedin / css-blocks

High performance, maintainable stylesheets.
http://css-blocks.com/
BSD 2-Clause "Simplified" License
6.34k stars 152 forks source link

Fault tolerance #380

Closed ramitha closed 4 years ago

ramitha commented 4 years ago

Adding a new flag to the block that can make it faultTolerant. When this is set to true, the block, instead of throwing errors, adds errors onto itself, resulting in possibility of the block containing multiple errors.

All the block parsing features have been updated in this PR to throw a multipleErrors error instead of a cssBlockError as it used to previously. Tests have been updated as well.

TODO: