Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address #364: catch errors per-section
In #364, I accidentally produced a file that (apparently) has empty section filenames, as understood by the extension. This lead to an undefined property access (`split`) when trying to work with the file name; that exception propagated all the way up the rendering stack, resulting in _no_ coverage being displayed. With this change, if we encounter an error in `checkSection`, we just return `false` - if it's an erroneous section, it doesn't apply to the current file. (This is especially true if there is no `section.file` property!) This way, we still show coverage wherever we can.
- Loading branch information